1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118 | tim@jake:~/go/src/github.com/juju/juju/worker/uniter/relation$ go test -check.f relationsSuite.TestHookRelationDeparted
----------------------------------------------------------------------
FAIL: relations_test.go:381: relationsSuite.TestHookRelationDeparted
request 0, Life
request 1, JoinedRelations
request 2, RelationById
request 3, Relation
request 4, Relation
request 5, Watch
request 7, EnterScope
request 6, Next
relations_test.go:386:
relations_test.go:94:
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:94:
c.Check(objType, gc.Equals, call.facadeName)
... obtained string = "NotifyWatcher"
... expected string = "Uniter"
relations_test.go:95:
c.Check(objType, gc.Equals, call.facadeName)
... obtained string = "Uniter"
... expected string = "NotifyWatcher"
relations_test.go:386:
c.Check(version, gc.Equals, call.version)
... obtained int = 0
... expected int = 2
relations_test.go:96:
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:95:
c.Check(id, gc.Equals, call.id)
... obtained string = "1"
... expected string = ""
relations_test.go:97:
c.Check(version, gc.Equals, call.version)
... obtained int = 2
... expected int = 0
relations_test.go:386:
c.Check(request, gc.Equals, call.request)
... obtained string = "Next"
... expected string = "EnterScope"
relations_test.go:98:
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:96:
c.Check(arg, jc.DeepEquals, call.args)
... obtained = nil
... expected params.RelationUnits = params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}
... mismatch at top level: nil vs non-nil mismatch; obtained <nil>; expected params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}
request 8, Next
request 9, Stop
relations_test.go:94:
c.Check(id, gc.Equals, call.id)
... obtained string = ""
... expected string = "1"
relations_test.go:386:
c.Check(objType, gc.Equals, call.facadeName)
... obtained string = "NotifyWatcher"
... expected string = "Uniter"
relations_test.go:95:
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:97:
c.Check(version, gc.Equals, call.version)
... obtained int = 0
... expected int = 2
relations_test.go:96:
c.Check(request, gc.Equals, call.request)
... obtained string = "EnterScope"
... expected string = "Stop"
relations_test.go:386:
c.Check(id, gc.Equals, call.id)
... obtained string = "1"
... expected string = ""
relations_test.go:97:
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:98:
c.Check(request, gc.Equals, call.request)
... obtained string = "Stop"
c.Check(arg, jc.DeepEquals, call.args)
... expected string = "GetPrincipal"
... obtained params.RelationUnits = params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}
... expected = nil
... mismatch at top level: nil vs non-nil mismatch; obtained params.RelationUnits{RelationUnits:[]params.RelationUnit{params.RelationUnit{Relation:"relation-wordpress.db#mysql.db", Unit:"unit-wordpress-0"}}}; expected <nil>
relations_test.go:98:
relations_test.go:386:
c.Check(arg, jc.DeepEquals, call.args)
... obtained = nil
... expected params.Entities = params.Entities{Entities:[]params.Entity{params.Entity{Tag:"unit-wordpress-0"}}}
... mismatch at top level: nil vs non-nil mismatch; obtained <nil>; expected params.Entities{Entities:[]params.Entity{params.Entity{Tag:"unit-wordpress-0"}}}
s.assertHookRelationDeparted(c, &numCalls, apiCalls...)
relations_test.go:286:
c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.Err{message:"", cause:(*params.Error)(0xc8205ea7e0), previous:(*errors.Err)(0xc8201788c0), file:"github.com/juju/juju/worker/uniter/relation/relations.go", line:69} ("watcher")
... error stack:
watcher
github.com/juju/juju/worker/uniter/relation/relations.go:401:
github.com/juju/juju/worker/uniter/relation/relations.go:180:
github.com/juju/juju/worker/uniter/relation/relations.go:69:
OOPS: 0 passed, 1 FAILED
--- FAIL: TestPackage (0.05s)
FAIL
exit status 1
|