Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Call prepare_test.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Feb 17, 2013
1 parent bd2bdfa commit 2ae484f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 1 addition & 2 deletions integration_test/hook_for_test.go
Expand Up @@ -48,8 +48,7 @@ func setupTest(c *C) {
"../../../../../bin/", "../../../../../bin/",
"../../../../../nut/", "../../../../../nut/",
} { } {
// dir = filepath.FromSlash(dir) c.Logf("%s", dir)
c.Logf("%s\n", dir)
c.Assert(os.RemoveAll(dir), IsNil) c.Assert(os.RemoveAll(dir), IsNil)
} }
} }
Expand Down
12 changes: 12 additions & 0 deletions integration_test/remote_test.go
@@ -1,6 +1,9 @@
package integration_test package integration_test


import ( import (
"net/http"
"net/url"
"os"
"strings" "strings"
"testing" "testing"


Expand All @@ -13,6 +16,14 @@ var _ = Suite(&R{})


func (*R) SetUpTest(c *C) { func (*R) SetUpTest(c *C) {
setupTest(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) { func (r *R) TearDownTest(c *C) {
Expand All @@ -22,6 +33,7 @@ func (r *R) TearDownTest(c *C) {
func (*R) TestPublishGet(c *C) { func (*R) TestPublishGet(c *C) {
if testing.Short() { if testing.Short() {
c.Skip("-short passed") c.Skip("-short passed")
return
} }


_, stderr := runNut(c, TestNut1, "pack -v") _, stderr := runNut(c, TestNut1, "pack -v")
Expand Down

0 comments on commit 2ae484f

Please sign in to comment.