mirror of https://github.com/nealey/spongy
runsvdir test (failing)
This commit is contained in:
parent
57a5de6dc1
commit
20e7ce8f8a
|
@ -0,0 +1,23 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"path"
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
func setupRunSpongy(t *testing.T, baseChan chan<- string) {
|
||||||
|
base, _ := createNetwork(t)
|
||||||
|
baseChan <- base
|
||||||
|
close(baseChan)
|
||||||
|
runsvdir(base)
|
||||||
|
os.RemoveAll(base)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestRunsvdir(t *testing.T) {
|
||||||
|
baseChan := make(chan string)
|
||||||
|
go setupRunSpongy(t, baseChan)
|
||||||
|
base := <- baseChan
|
||||||
|
expect(t, path.Join(base, "log", "current"), " 001 ")
|
||||||
|
os.RemoveAll(base)
|
||||||
|
}
|
Loading…
Reference in New Issue