|
|
|
@ -486,7 +486,7 @@ func TestStateMachine(t *testing.T) {
|
|
|
|
|
c.Assert(nn[0].LoginFinished, qt.IsNotNil)
|
|
|
|
|
c.Assert(nn[1].Prefs, qt.IsNotNil)
|
|
|
|
|
c.Assert(nn[2].State, qt.IsNotNil)
|
|
|
|
|
c.Assert(nn[1].Prefs.Persist().UserProfile().LoginName(), qt.Equals, "user1")
|
|
|
|
|
c.Assert(nn[1].Prefs.Persist().UserProfile().LoginName, qt.Equals, "user1")
|
|
|
|
|
c.Assert(ipn.NeedsMachineAuth, qt.Equals, *nn[2].State)
|
|
|
|
|
c.Assert(ipn.NeedsMachineAuth, qt.Equals, b.State())
|
|
|
|
|
}
|
|
|
|
@ -675,7 +675,7 @@ func TestStateMachine(t *testing.T) {
|
|
|
|
|
c.Assert(nn[1].Prefs.Persist(), qt.IsNotNil)
|
|
|
|
|
c.Assert(nn[2].State, qt.IsNotNil)
|
|
|
|
|
// Prefs after finishing the login, so LoginName updated.
|
|
|
|
|
c.Assert(nn[1].Prefs.Persist().UserProfile().LoginName(), qt.Equals, "user2")
|
|
|
|
|
c.Assert(nn[1].Prefs.Persist().UserProfile().LoginName, qt.Equals, "user2")
|
|
|
|
|
c.Assert(nn[1].Prefs.LoggedOut(), qt.IsFalse)
|
|
|
|
|
c.Assert(nn[1].Prefs.WantRunning(), qt.IsTrue)
|
|
|
|
|
c.Assert(ipn.Starting, qt.Equals, *nn[2].State)
|
|
|
|
@ -816,7 +816,7 @@ func TestStateMachine(t *testing.T) {
|
|
|
|
|
c.Assert(nn[1].Prefs, qt.IsNotNil)
|
|
|
|
|
c.Assert(nn[2].State, qt.IsNotNil)
|
|
|
|
|
// Prefs after finishing the login, so LoginName updated.
|
|
|
|
|
c.Assert(nn[1].Prefs.Persist().UserProfile().LoginName(), qt.Equals, "user3")
|
|
|
|
|
c.Assert(nn[1].Prefs.Persist().UserProfile().LoginName, qt.Equals, "user3")
|
|
|
|
|
c.Assert(nn[1].Prefs.LoggedOut(), qt.IsFalse)
|
|
|
|
|
c.Assert(nn[1].Prefs.WantRunning(), qt.IsTrue)
|
|
|
|
|
c.Assert(ipn.Starting, qt.Equals, *nn[2].State)
|
|
|
|
|