runsvdir test (failing)

This commit is contained in:
Neale Pickett 2015-02-11 15:01:14 -07:00
parent 57a5de6dc1
commit 20e7ce8f8a
1 changed files with 23 additions and 0 deletions

23
spongy/spongy_test.go Normal file
View File

@ -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)
}