Permalink
Browse files

Call prepare_test.

  • Loading branch information...
1 parent bd2bdfa commit 2ae484f8ffb623bc20a85f460dda133d434aad5a @AlekSi committed Feb 17, 2013
Showing with 13 additions and 2 deletions.
  1. +1 −2 integration_test/hook_for_test.go
  2. +12 −0 integration_test/remote_test.go
View
3 integration_test/hook_for_test.go
@@ -48,8 +48,7 @@ func setupTest(c *C) {
"../../../../../bin/",
"../../../../../nut/",
} {
- // dir = filepath.FromSlash(dir)
- c.Logf("%s\n", dir)
+ c.Logf("%s", dir)
c.Assert(os.RemoveAll(dir), IsNil)
}
}
View
12 integration_test/remote_test.go
@@ -1,6 +1,9 @@
package integration_test
import (
+ "net/http"
+ "net/url"
+ "os"
"strings"
"testing"
@@ -13,6 +16,14 @@ var _ = Suite(&R{})
func (*R) SetUpTest(c *C) {
setupTest(c)
+
+ server := os.Getenv("GONUTS_IO_SERVER")
+ u, err := url.Parse("http://" + server + "/debug/prepare_test")
+ c.Assert(err, IsNil)
+ res, err := http.Get(u.String())
+ c.Assert(err, IsNil)
+ res.Body.Close()
+ c.Assert(res.StatusCode, Equals, 200)
}
func (r *R) TearDownTest(c *C) {
@@ -22,6 +33,7 @@ func (r *R) TearDownTest(c *C) {
func (*R) TestPublishGet(c *C) {
if testing.Short() {
c.Skip("-short passed")
+ return
}
_, stderr := runNut(c, TestNut1, "pack -v")

0 comments on commit 2ae484f

Please sign in to comment.