Skip to content

Commit

Permalink
api: another test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Souza committed Apr 16, 2015
1 parent 8296a76 commit 6fe0fc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2865,6 +2865,10 @@ func (s *S) TestSwapApp1Locked(c *check.C) {
app2 := app.App{Name: "app2", Teams: []string{s.team.Name}}
err = s.conn.Apps().Insert(&app2)
c.Assert(err, check.IsNil)
app.Provisioner.Provision(&app1)
defer app.Provisioner.Destroy(&app1)
app.Provisioner.Provision(&app2)
defer app.Provisioner.Destroy(&app2)
defer s.conn.Apps().Remove(bson.M{"name": app2.Name})
request, _ := http.NewRequest("PUT", "/swap?app1=app1&app2=app2", nil)
recorder := httptest.NewRecorder()
Expand Down

0 comments on commit 6fe0fc6

Please sign in to comment.