Skip to content

Commit bb36e80

Browse files
committed
fix go linter
1 parent bac9f13 commit bb36e80

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

clients/tfchain-client-go/impl_test.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ func TestConcurrentAccess(t *testing.T) {
7777
return
7878
}
7979
defer sub.Release()
80-
sub.Time()
80+
_, err = sub.Time()
81+
assert.NoError(t, err)
8182
time.Sleep(10 * time.Millisecond)
8283
}()
8384
}
@@ -111,7 +112,8 @@ func TestHealthChecking(t *testing.T) {
111112
old := sub.conn.conn
112113
old.Client.Close()
113114
// simulate usage of the client
114-
sub.Time()
115+
_, err = sub.Time()
116+
assert.NoError(t, err)
115117
assert.NotEqual(t, old, sub.conn.conn)
116118
}
117119

@@ -169,7 +171,8 @@ func TestStressWithFailures(t *testing.T) {
169171
retryBackoff = time.Millisecond * 100
170172

171173
// Simulate work
172-
sub.Time()
174+
_, err = sub.Time()
175+
assert.NoError(t, err)
173176
time.Sleep(time.Duration(rand.Intn(250)+50) * time.Millisecond)
174177

175178
if id%2 == 0 && rand.Float32() < 0.1 {

0 commit comments

Comments
 (0)