File tree 1 file changed +6
-3
lines changed
clients/tfchain-client-go
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ func TestConcurrentAccess(t *testing.T) {
77
77
return
78
78
}
79
79
defer sub .Release ()
80
- sub .Time ()
80
+ _ , err = sub .Time ()
81
+ assert .NoError (t , err )
81
82
time .Sleep (10 * time .Millisecond )
82
83
}()
83
84
}
@@ -111,7 +112,8 @@ func TestHealthChecking(t *testing.T) {
111
112
old := sub .conn .conn
112
113
old .Client .Close ()
113
114
// simulate usage of the client
114
- sub .Time ()
115
+ _ , err = sub .Time ()
116
+ assert .NoError (t , err )
115
117
assert .NotEqual (t , old , sub .conn .conn )
116
118
}
117
119
@@ -169,7 +171,8 @@ func TestStressWithFailures(t *testing.T) {
169
171
retryBackoff = time .Millisecond * 100
170
172
171
173
// Simulate work
172
- sub .Time ()
174
+ _ , err = sub .Time ()
175
+ assert .NoError (t , err )
173
176
time .Sleep (time .Duration (rand .Intn (250 )+ 50 ) * time .Millisecond )
174
177
175
178
if id % 2 == 0 && rand .Float32 () < 0.1 {
You can’t perform that action at this time.
0 commit comments