Skip to content

Commit d5f9868

Browse files
committed
Remove log file after the test is finished
1 parent ef28253 commit d5f9868

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

network/server_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ func TestRunServer(t *testing.T) {
213213
assert.Contains(t, logLines, "Ingress traffic", "Ingress traffic should be logged")
214214
assert.Contains(t, logLines, "Egress traffic", "Egress traffic should be logged")
215215
assert.Contains(t, logLines, "GatewayD is shutting down...", "GatewayD should be shutting down")
216+
217+
assert.NoError(t, os.Remove("server_test.log"))
216218
}
217219
}(server, errs)
218220

0 commit comments

Comments
 (0)