From 5bb93db881303df97f33736139e9013af83efacf Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Wed, 20 Sep 2023 20:40:15 +0200 Subject: [PATCH] Remove log file after the test is finished --- network/server_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/network/server_test.go b/network/server_test.go index c0c28055..d7ace8b8 100644 --- a/network/server_test.go +++ b/network/server_test.go @@ -269,6 +269,8 @@ func TestRunServer(t *testing.T) { // Pause for a while to allow the server to disconnect and shutdown. time.Sleep(500 * time.Millisecond) server.Shutdown() + + assert.NoError(t, os.Remove("server_test.log")) break } }