summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-26 12:30:19 +0300
committerValery Piashchynski <[email protected]>2020-11-26 12:30:19 +0300
commite5313529e4293b7ad985cce72cec54b08462259d (patch)
tree7056d01a982e44b997ad4b35f0dea7e99a618549
parent073683ebe27131cf8371decdfe309264b8ea2ad6 (diff)
Add testcache clean everytime tests run, remove unnecessary mutes in
worker Stop
-rw-r--r--Makefile1
-rwxr-xr-xworker.go2
2 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 93510b40..165802f8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
test:
+ go clean -testcache
go test -v -race -cover . -tags=debug
go test -v -race -cover ./plugins/rpc -tags=debug
go test -v -race -cover ./plugins/rpc/tests -tags=debug
diff --git a/worker.go b/worker.go
index e2a4913e..0289a7fe 100755
--- a/worker.go
+++ b/worker.go
@@ -262,8 +262,6 @@ func (w *WorkerProcess) closeRelay() error {
// Stop sends soft termination command to the WorkerProcess and waits for process completion.
func (w *WorkerProcess) Stop(ctx context.Context) error {
- w.mu.Lock()
- defer w.mu.Unlock()
c := make(chan error)
go func() {