Selaa lähdekoodia

Revert "disable docker_test"

This reverts commit 6d17d6b4ca57b56ca043240a3cb1a0510122b2f4.
z4yx 5 vuotta sitten
vanhempi
sitoutus
b816803eaf
1 muutettua tiedostoa jossa 8 lisäystä ja 2 poistoa
  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()
 	})
 }
-*/