diff --git a/store/streaming/file/service_test.go b/store/streaming/file/service_test.go index 0acf4502de06..fbbb55090167 100644 --- a/store/streaming/file/service_test.go +++ b/store/streaming/file/service_test.go @@ -118,7 +118,8 @@ func TestFileStreamingService(t *testing.T) { defer os.RemoveAll(testDir) testKeys := []types.StoreKey{mockStoreKey1, mockStoreKey2} - testStreamingService, err := NewStreamingService(testDir, testPrefix, testKeys, testMarshaller, true, false, false) + var err error + testStreamingService, err = NewStreamingService(testDir, testPrefix, testKeys, testMarshaller, true, false, false) require.Nil(t, err) require.IsType(t, &StreamingService{}, testStreamingService) require.Equal(t, testPrefix, testStreamingService.filePrefix)