From aba4e6efb3e0ea6925361fbb3166ec4cec5d4a80 Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Wed, 14 Dec 2022 15:17:39 -0700 Subject: [PATCH] fix(store): Fix the TestFileStreamingService unit test. (#14305) --- store/streaming/file/service_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/store/streaming/file/service_test.go b/store/streaming/file/service_test.go index fab45260d341..2327efac687f 100644 --- a/store/streaming/file/service_test.go +++ b/store/streaming/file/service_test.go @@ -116,7 +116,8 @@ func TestFileStreamingService(t *testing.T) { defer os.RemoveAll(testDir) testKeys := []types.StoreKey{mockStoreKey1, mockStoreKey2} - testStreamingService, err := NewStreamingService(testDir, testPrefix, testKeys, testMarshaller, log.NewNopLogger(), true, false, false) + var err error + testStreamingService, err = NewStreamingService(testDir, testPrefix, testKeys, testMarshaller, log.NewNopLogger(), true, false, false) require.Nil(t, err) require.IsType(t, &StreamingService{}, testStreamingService) require.Equal(t, testPrefix, testStreamingService.filePrefix)