Merge lp:~fgimenez/snappy/fan-test-fixes into lp:~snappy-dev/snappy/snappy-moved-to-github

Proposed by Federico Gimenez
Status: Merged
Approved by: Leo Arias
Approved revision: 781
Merged at revision: 790
Proposed branch: lp:~fgimenez/snappy/fan-test-fixes
Merge into: lp:~snappy-dev/snappy/snappy-moved-to-github
Diff against target: 26 lines (+8/-2)
1 file modified
_integration-tests/tests/ubuntuFan_test.go (+8/-2)
To merge this branch: bzr merge lp:~fgimenez/snappy/fan-test-fixes
Reviewer Review Type Date Requested Status
Leo Arias (community) Approve
Review via email: mp+274569@code.launchpad.net

Commit message

Wait for docker.sock instead of service active on docker setup

Description of the change

Wait for docker.sock instead of service active on docker setup

To post a comment you must log in.
lp:~fgimenez/snappy/fan-test-fixes updated
778. By Federico Gimenez

wait for service too

Revision history for this message
Leo Arias (elopio) wrote :

Please add a check.Commentf message to the Assertions.

review: Needs Fixing
lp:~fgimenez/snappy/fan-test-fixes updated
779. By Federico Gimenez

merged trunk

780. By Federico Gimenez

Added messages to assertions

Revision history for this message
Federico Gimenez (fgimenez) wrote :

Ok done, thanks!

lp:~fgimenez/snappy/fan-test-fixes updated
781. By Federico Gimenez

merged trunk

Revision history for this message
Leo Arias (elopio) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '_integration-tests/tests/ubuntuFan_test.go'
2--- _integration-tests/tests/ubuntuFan_test.go 2015-10-15 01:34:46 +0000
3+++ _integration-tests/tests/ubuntuFan_test.go 2015-10-20 08:43:58 +0000
4@@ -179,8 +179,11 @@
5 cli.ExecCommand(c, "sudo", "systemctl", "restart", dockerService)
6
7 // we need to wait until the socket is ready, an active systemctl status is not enough
8- err := wait.ForCommand(c, `(?ms).*docker\.sock\s.*`, "ls", "/run")
9- c.Assert(err, check.IsNil)
10+ err := wait.ForActiveService(c, dockerService)
11+ c.Assert(err, check.IsNil, check.Commentf("Expected nil error, got %s", err))
12+
13+ err = wait.ForCommand(c, `(?ms).*docker\.sock\s.*`, "ls", "/run")
14+ c.Assert(err, check.IsNil, check.Commentf("Expected nil error, got %s", err))
15 }
16
17 func (s *fanTestSuite) fanName() string {
18@@ -200,6 +203,9 @@
19 err := wait.ForActiveService(c, dockerService)
20 c.Assert(err, check.IsNil, check.Commentf("Error waiting for service: %s", err))
21
22+ err = wait.ForCommand(c, `(?ms).*docker\.sock\s.*`, "ls", "/run")
23+ c.Assert(err, check.IsNil, check.Commentf("Expected nil error, got %s", err))
24+
25 cli.ExecCommand(c, "docker", "pull", baseContainer)
26 }
27

Subscribers

People subscribed via source and target branches