From 20e7ce8f8acbff1cda6b19b40ac4cec6de248b5d Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 11 Feb 2015 15:01:14 -0700 Subject: [PATCH] runsvdir test (failing) --- spongy/spongy_test.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 spongy/spongy_test.go diff --git a/spongy/spongy_test.go b/spongy/spongy_test.go new file mode 100644 index 0000000..a615f3f --- /dev/null +++ b/spongy/spongy_test.go @@ -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) +}