Ubuntu Pastebin

Paste from xxx at Tue, 21 Jun 2016 03:04:13 +0000

Download as text
 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
allwatcher_internal_test.go:1078:
    func() {
        checkIsolationForEnv := func(st *State, w, otherW *testWatcher) {
            c.Logf("Making changes to model %s", st.ModelUUID())

            if test.setUpState != nil {
                test.setUpState(st)
                // Consume events from setup.
                w.AssertChanges(c)
                w.AssertNoChange(c)
                otherW.AssertNoChange(c)
            }

            test.triggerEvent(st)
            // Check event was isolated to the correct watcher.
            w.AssertChanges(c)
            w.AssertNoChange(c)
            otherW.AssertNoChange(c)
        }
        otherState := s.newState(c)

        w1 := newTestAllWatcher(s.state, c)
        defer w1.Stop()
        w2 := newTestAllWatcher(otherState, c)
        defer w2.Stop()

        // The first set of deltas is empty, reflecting an empty model.
        w1.AssertNoChange(c)
        w2.AssertNoChange(c)
        checkIsolationForEnv(s.state, w1, w2)
        checkIsolationForEnv(otherState, w2, w1)
    }()
allwatcher_internal_test.go:3106:
    c.Assert(len(d), gc.Equals, 0)
... obtained int = 1
... expected int = 0
Download as text