Skip to content

Commit ff8e422

Browse files
committed
test: Follow changes of testing framwwork
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 1429197 commit ff8e422

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

fluent/fluent_test.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -772,10 +772,14 @@ func TestSyncWriteAfterCloseFails(t *testing.T) {
772772
err = f.PostWithTime("tag_name", time.Unix(1482493050, 0), map[string]string{"foo": "buzz"})
773773

774774
// The event submission must fail,
775-
assert.NotEqual(t, err, nil)
775+
if err == nil {
776+
t.Error("expected an error")
777+
}
776778

777-
// and also must keep Fluentd closed.
778-
assert.NotEqual(t, f.closed, false)
779+
// and also must keep Fluentd closed. true equals 1.
780+
if f.closed != int32(1) {
781+
t.Error("expected Fluentd to be kept closed")
782+
}
779783
}()
780784

781785
conn := d.waitForNextDialing(true, false)

0 commit comments

Comments
 (0)