소스 검색

Revert "disable docker_test"

This reverts commit 6d17d6b4ca57b56ca043240a3cb1a0510122b2f4.
z4yx 5 년 전
부모
커밋
b816803eaf
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 2
      worker/docker_test.go

+ 8 - 2
worker/docker_test.go

@@ -1,10 +1,17 @@
 package worker
 
 import (
+	"fmt"
+	"io/ioutil"
+	"os"
+	"path/filepath"
+	"testing"
+	"time"
+
+	"github.com/codeskyblue/go-sh"
 	. "github.com/smartystreets/goconvey/convey"
 )
 
-/*
 func getDockerByName(name string) (string, error) {
 	// docker ps -f 'name=$name' --format '{{.Names}}'
 	out, err := sh.Command(
@@ -94,4 +101,3 @@ sleep 10
 		d.postExec()
 	})
 }
-*/