Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <ys@uber.com>
  • Loading branch information
Yuri Shkuro committed Jan 17, 2018
1 parent 1f05b2d commit 26c04ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/storage/factory_test.go
Expand Up @@ -62,7 +62,7 @@ func TestNewFactory(t *testing.T) {

f, err = NewFactory(FactoryConfig{SpanStorageType: "x", DependenciesStorageType: "y"})
require.Error(t, err)
expected := "Unknown storage type x."
expected := "Unknown storage type" // could be 'x' or 'y' since code iterates through map.
assert.Equal(t, expected, err.Error()[0:len(expected)])
}

Expand Down

0 comments on commit 26c04ca

Please sign in to comment.