Merge lp:~jonas-drange/ubuntu-push/lp1577723 into lp:ubuntu-push

Proposed by Jonas G. Drange
Status: Superseded
Proposed branch: lp:~jonas-drange/ubuntu-push/lp1577723
Merge into: lp:ubuntu-push
Diff against target: 113 lines (+12/-10)
9 files modified
bus/connectivity/connectivity_test.go (+1/-1)
bus/networkmanager/networkmanager.go (+1/-1)
client/session/session_test.go (+1/-1)
debian/rules (+2/-1)
debian/source/format (+0/-1)
docs/example-server/.bzrignore (+0/-1)
docs/example-server/.gitignore (+0/-3)
launch_helper/kindpool.go (+4/-0)
launch_helper/kindpool_test.go (+3/-1)
To merge this branch: bzr merge lp:~jonas-drange/ubuntu-push/lp1577723
Reviewer Review Type Date Requested Status
Ubuntu Push Hackers Pending
Review via email: mp+293623@code.launchpad.net

Commit message

Fix ordering issue in kindpool helper causing Postal test failures, and ignore the http13 tests.

To post a comment you must log in.

Unmerged revisions

431. By Jonas G. Drange

unskip test, ignore http13 tests, and fix order problem in kindpool

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bus/connectivity/connectivity_test.go'
--- bus/connectivity/connectivity_test.go 2015-04-29 15:17:49 +0000
+++ bus/connectivity/connectivity_test.go 2016-05-03 13:46:51 +0000
@@ -167,7 +167,7 @@
167167
168func (rep *racyEndpoint) GetProperty(prop string) (interface{}, error) {168func (rep *racyEndpoint) GetProperty(prop string) (interface{}, error) {
169 switch prop {169 switch prop {
170 case "state":170 case "State":
171 rep.lock.Lock()171 rep.lock.Lock()
172 defer rep.lock.Unlock()172 defer rep.lock.Unlock()
173 rep.stateGot = true173 rep.stateGot = true
174174
=== modified file 'bus/networkmanager/networkmanager.go'
--- bus/networkmanager/networkmanager.go 2015-03-30 12:04:49 +0000
+++ bus/networkmanager/networkmanager.go 2016-05-03 13:46:51 +0000
@@ -76,7 +76,7 @@
76*/76*/
7777
78func (nm *networkManager) GetState() State {78func (nm *networkManager) GetState() State {
79 s, err := nm.bus.GetProperty("state")79 s, err := nm.bus.GetProperty("State")
80 if err != nil {80 if err != nil {
81 nm.log.Errorf("failed getting current state: %s", err)81 nm.log.Errorf("failed getting current state: %s", err)
82 nm.log.Debugf("defaulting state to Unknown")82 nm.log.Debugf("defaulting state to Unknown")
8383
=== modified file 'client/session/session_test.go'
--- client/session/session_test.go 2015-08-10 00:02:36 +0000
+++ client/session/session_test.go 2016-05-03 13:46:51 +0000
@@ -1022,7 +1022,7 @@
1022}1022}
10231023
1024func (s *loopSuite) waitUntilRunning(c *C) {1024func (s *loopSuite) waitUntilRunning(c *C) {
1025 delay := time.Duration(1000)1025 delay := time.Duration(5000)
1026 for i := 0; i < 5; i++ {1026 for i := 0; i < 5; i++ {
1027 if s.sess.State() == Running {1027 if s.sess.State() == Running {
1028 return1028 return
10291029
=== modified file 'debian/rules'
--- debian/rules 2016-03-10 20:24:21 +0000
+++ debian/rules 2016-05-03 13:46:51 +0000
@@ -26,7 +26,8 @@
26 (cd signing-helper && cmake . && make)26 (cd signing-helper && cmake . && make)
2727
28override_dh_auto_test:28override_dh_auto_test:
29 GODEBUG=cgocheck=0 dh_auto_test -O--buildsystem=golang29 cd $$( find ./ -type d -regex '\./[^/]*/src/launchpad.net' -printf "%h\n" | head -n1) && \
30 env GODEBUG=cgocheck=0 GOPATH=$$(cd ..; pwd) go test -v $$(env GOPATH=$$(cd ..; pwd) go list $(DH_GOPKG)/... | grep -v acceptance | grep -v http13client )
3031
31override_dh_install:32override_dh_install:
32 dh_install -Xusr/bin/cmd --fail-missing33 dh_install -Xusr/bin/cmd --fail-missing
3334
=== added directory 'debian/source'
=== removed directory 'debian/source'
=== added file 'debian/source/format'
--- debian/source/format 1970-01-01 00:00:00 +0000
+++ debian/source/format 2016-05-03 13:46:51 +0000
@@ -0,0 +1,1 @@
13.0 (quilt)
02
=== removed file 'debian/source/format'
--- debian/source/format 2014-03-25 14:35:07 +0000
+++ debian/source/format 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
13.0 (quilt)
20
=== removed file 'docs/example-server/.bzrignore'
--- docs/example-server/.bzrignore 2014-09-05 14:57:17 +0000
+++ docs/example-server/.bzrignore 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1.git
20
=== removed file 'docs/example-server/.gitignore'
--- docs/example-server/.gitignore 2014-09-05 14:57:17 +0000
+++ docs/example-server/.gitignore 1970-01-01 00:00:00 +0000
@@ -1,3 +0,0 @@
1.bzr
2.bzrignore
3node_modules
40
=== modified file 'launch_helper/kindpool.go'
--- launch_helper/kindpool.go 2015-11-19 13:59:29 +0000
+++ launch_helper/kindpool.go 2016-05-03 13:46:51 +0000
@@ -299,6 +299,10 @@
299 return299 return
300 }300 }
301 pool.chDone <- args.Input.App301 pool.chDone <- args.Input.App
302 // mark it done only once we have sent the output so to order things
303 defer func() {
304 pool.chDone <- args.Input.App
305 }()
302 defer func() {306 defer func() {
303 pool.cleanupTempFiles(args.FileIn, args.FileOut)307 pool.cleanupTempFiles(args.FileIn, args.FileOut)
304 }()308 }()
305309
=== modified file 'launch_helper/kindpool_test.go'
--- launch_helper/kindpool_test.go 2015-11-19 15:37:16 +0000
+++ launch_helper/kindpool_test.go 2016-05-03 13:46:51 +0000
@@ -497,10 +497,12 @@
497 c.Fatal("timeout waiting for result")497 c.Fatal("timeout waiting for result")
498 }498 }
499 go s.fakeLauncher.done("0")499 go s.fakeLauncher.done("0")
500 s.waitForArgs(c, "Launch")
501500
502 res := takeNext(ch, c)501 res := takeNext(ch, c)
503 c.Assert(res, NotNil)502 c.Assert(res, NotNil)
503
504 s.waitForArgs(c, "Launch")
505
504 c.Assert(res.Input, NotNil)506 c.Assert(res.Input, NotNil)
505 c.Assert(res.Input.App, NotNil)507 c.Assert(res.Input.App, NotNil)
506 c.Assert(res.Input.App.Original(), Equals, "com.example.test_test-app-1")508 c.Assert(res.Input.App.Original(), Equals, "com.example.test_test-app-1")

Subscribers

People subscribed via source and target branches