From 21a2e8c320c6577f16f30fc441772688e29bb2e8 Mon Sep 17 00:00:00 2001 From: Frederic Branczyk Date: Thu, 8 Oct 2020 09:50:37 +0200 Subject: [PATCH] storage/remote/intern_test.go: Fix linting errors Signed-off-by: Frederic Branczyk --- storage/remote/intern_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/storage/remote/intern_test.go b/storage/remote/intern_test.go index 56a908811..7f03275e5 100644 --- a/storage/remote/intern_test.go +++ b/storage/remote/intern_test.go @@ -33,7 +33,7 @@ func TestIntern(t *testing.T) { interned, ok := interner.pool[testString] testutil.Equals(t, true, ok) - testutil.Assert(t, interned.refs.Load() == 1, fmt.Sprintf("expected refs to be 1 but it was %d", interned.refs)) + testutil.Assert(t, interned.refs.Load() == 1, fmt.Sprintf("expected refs to be 1 but it was %d", interned.refs.Load())) } func TestIntern_MultiRef(t *testing.T) { @@ -44,13 +44,13 @@ func TestIntern_MultiRef(t *testing.T) { interned, ok := interner.pool[testString] testutil.Equals(t, true, ok) - testutil.Assert(t, interned.refs.Load() == 1, fmt.Sprintf("expected refs to be 1 but it was %d", interned.refs)) + testutil.Assert(t, interned.refs.Load() == 1, fmt.Sprintf("expected refs to be 1 but it was %d", interned.refs.Load())) interner.intern(testString) interned, ok = interner.pool[testString] testutil.Equals(t, true, ok) - testutil.Assert(t, interned.refs.Load() == 2, fmt.Sprintf("expected refs to be 2 but it was %d", interned.refs)) + testutil.Assert(t, interned.refs.Load() == 2, fmt.Sprintf("expected refs to be 2 but it was %d", interned.refs.Load())) } func TestIntern_DeleteRef(t *testing.T) { @@ -61,7 +61,7 @@ func TestIntern_DeleteRef(t *testing.T) { interned, ok := interner.pool[testString] testutil.Equals(t, true, ok) - testutil.Assert(t, interned.refs.Load() == 1, fmt.Sprintf("expected refs to be 1 but it was %d", interned.refs)) + testutil.Assert(t, interned.refs.Load() == 1, fmt.Sprintf("expected refs to be 1 but it was %d", interned.refs.Load())) interner.release(testString) _, ok = interner.pool[testString] @@ -75,7 +75,7 @@ func TestIntern_MultiRef_Concurrent(t *testing.T) { interner.intern(testString) interned, ok := interner.pool[testString] testutil.Equals(t, true, ok) - testutil.Assert(t, interned.refs.Load() == 1, fmt.Sprintf("expected refs to be 1 but it was %d", interned.refs)) + testutil.Assert(t, interned.refs.Load() == 1, fmt.Sprintf("expected refs to be 1 but it was %d", interned.refs.Load())) go interner.release(testString) @@ -87,5 +87,5 @@ func TestIntern_MultiRef_Concurrent(t *testing.T) { interned, ok = interner.pool[testString] interner.mtx.RUnlock() testutil.Equals(t, true, ok) - testutil.Assert(t, interned.refs.Load() == 1, fmt.Sprintf("expected refs to be 1 but it was %d", interned.refs)) + testutil.Assert(t, interned.refs.Load() == 1, fmt.Sprintf("expected refs to be 1 but it was %d", interned.refs.Load())) }