From 5e32b18639ef428503483f593c383c5042430c6a Mon Sep 17 00:00:00 2001 From: JeffreyLean Date: Tue, 1 Aug 2023 11:01:14 +0800 Subject: [PATCH] fix gcs test --- internal/storage/writer/gcs/gcs_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/storage/writer/gcs/gcs_test.go b/internal/storage/writer/gcs/gcs_test.go index 42713d52..560fd11e 100644 --- a/internal/storage/writer/gcs/gcs_test.go +++ b/internal/storage/writer/gcs/gcs_test.go @@ -15,6 +15,10 @@ func TestWriter(t *testing.T) { c, err := New("test", "test", "", "", m) // TODO: Impove test - assert.Nil(t, err) - assert.Error(t, c.Write(key.Key("test"), nil)) + assert.Nil(t, c) + assert.Error(t, err) + + assert.Panics(t, func() { + c.Write(key.Key("test"), nil) + }) }