mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
Update mgr_test.go
This commit is contained in:
@@ -81,7 +81,7 @@ func testConfig(t *testing.T, s *mgr.Service, should mgr.Config) mgr.Config {
|
||||
t.Fatalf("Config failed: %s", err)
|
||||
}
|
||||
if should.DelayedAutoStart != is.DelayedAutoStart {
|
||||
t.Fatalf("config mismatch: DelayedAutoStart is %q, but should have %q", is.DelayedAutoStart, should.DelayedAutoStart)
|
||||
t.Fatalf("config mismatch: DelayedAutoStart is %t, but should have %t", is.DelayedAutoStart, should.DelayedAutoStart)
|
||||
}
|
||||
if should.DisplayName != is.DisplayName {
|
||||
t.Fatalf("config mismatch: DisplayName is %q, but should have %q", is.DisplayName, should.DisplayName)
|
||||
@@ -261,7 +261,7 @@ func TestMyService(t *testing.T) {
|
||||
testConfig(t, s, c)
|
||||
|
||||
c.StartType = mgr.StartAutomatic
|
||||
c.DelayedAutoStart = mgr.ServiceDelayedAutoStartTrue
|
||||
c.DelayedAutoStart = true
|
||||
err = s.UpdateConfig(c)
|
||||
if err != nil {
|
||||
t.Fatalf("UpdateConfig failed: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user