fix: unittest with failfast

This commit is contained in:
debugtalk
2022-04-16 00:36:38 +08:00
parent 810bce0a88
commit 98c23fbd1f
14 changed files with 154 additions and 147 deletions
+1 -1
View File
@@ -109,6 +109,6 @@ func TestLoopCount(t *testing.T) {
go runner.start()
<-runner.stopChan
if !assert.Equal(t, runner.loop.loopCount, atomic.LoadInt64(&runner.loop.finishedCount)) {
t.Fail()
t.Fatal()
}
}
+1 -1
View File
@@ -155,7 +155,7 @@ func TestSerializeStats(t *testing.T) {
first := serialized[0]
entry, err := deserializeStatsEntry(first)
if err != nil {
t.Fail()
t.Fatal()
}
if entry.Name != "success" {