From 4baddecd8e53b37c6b202026f33f57497210862d Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Wed, 22 Jan 2020 15:06:56 +0800 Subject: [PATCH] Fix: ignore data-race detector in onedrive tests --- pkg/filesystem/driver/onedrive/handler_test.go | 2 ++ pkg/util/logger.go | 2 -- pkg/util/logger_test.go | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/filesystem/driver/onedrive/handler_test.go b/pkg/filesystem/driver/onedrive/handler_test.go index 6040fb6..025a24c 100644 --- a/pkg/filesystem/driver/onedrive/handler_test.go +++ b/pkg/filesystem/driver/onedrive/handler_test.go @@ -1,3 +1,5 @@ +// +build !race + package onedrive import ( diff --git a/pkg/util/logger.go b/pkg/util/logger.go index 6e325a4..2879a02 100644 --- a/pkg/util/logger.go +++ b/pkg/util/logger.go @@ -1,5 +1,3 @@ -// +build !race - package util import ( diff --git a/pkg/util/logger_test.go b/pkg/util/logger_test.go index f09e86a..72bd2f5 100644 --- a/pkg/util/logger_test.go +++ b/pkg/util/logger_test.go @@ -1,3 +1,5 @@ +// +build !race + package util import (