From 991f1be8e6a779aec059210783862fc829611d19 Mon Sep 17 00:00:00 2001 From: AnnaShaleva Date: Wed, 17 Nov 2021 16:23:20 +0300 Subject: [PATCH] cli: fix TestHandleLoggingParams test Problem: ``` --- FAIL: TestHandleLoggingParams (0.02s) --- FAIL: TestHandleLoggingParams/default (0.00s) server_test.go:51: Error Trace: server_test.go:51 Error: Received unexpected error: couldn't open sink "C:\\Users\\Anna\\AppData\\Local\\Temp\\TestHandleLoggingParams226652490\\001/file.log": no sink found for scheme "c" Test: TestHandleLoggingParams/default --- FAIL: TestHandleLoggingParams/debug (0.00s) server_test.go:64: Error Trace: server_test.go:64 Error: Received unexpected error: couldn't open sink "C:\\Users\\Anna\\AppData\\Local\\Temp\\TestHandleLoggingParams226652490\\001/file.log": no sink found for scheme "c" Test: TestHandleLoggingParams/debug ``` Solution: Currently no solution is implemented, but we can use relative paths instead of absolute. --- cli/server/server_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/server/server_test.go b/cli/server/server_test.go index bce4d9336..fa59c5cc5 100644 --- a/cli/server/server_test.go +++ b/cli/server/server_test.go @@ -38,6 +38,7 @@ func TestGetConfigFromContext(t *testing.T) { } func TestHandleLoggingParams(t *testing.T) { + // This test is failing on Windows, see https://github.com/nspcc-dev/neo-go/issues/2269 d := t.TempDir() testLog := path.Join(d, "file.log")