Skip to content

Commit 8f0cd3a

Browse files
author
Mika Lackman
committed
more timeout
1 parent c2c4d4e commit 8f0cd3a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

upcloud/service/service_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func teardown() {
5151
serverDetails, err := svc.WaitForServerState(&request.WaitForServerStateRequest{
5252
UUID: server.UUID,
5353
UndesiredState: upcloud.ServerStateMaintenance,
54-
Timeout: time.Minute * 5,
54+
Timeout: time.Minute * 15,
5555
})
5656
handleError(err)
5757

@@ -80,7 +80,7 @@ func teardown() {
8080
_, err = svc.WaitForStorageState(&request.WaitForStorageStateRequest{
8181
UUID: storage.UUID,
8282
DesiredState: upcloud.StorageStateOnline,
83-
Timeout: time.Minute * 5,
83+
Timeout: time.Minute * 15,
8484
})
8585
handleError(err)
8686
}
@@ -151,7 +151,7 @@ func TestCreateModifyDeleteServer(t *testing.T) {
151151
serverDetails, err = svc.WaitForServerState(&request.WaitForServerStateRequest{
152152
UUID: serverDetails.UUID,
153153
DesiredState: upcloud.ServerStateStarted,
154-
Timeout: time.Minute * 5,
154+
Timeout: time.Minute * 15,
155155
})
156156

157157
handleError(err)
@@ -647,7 +647,7 @@ func createServer(name string) *upcloud.ServerDetails {
647647
serverDetails, err = svc.WaitForServerState(&request.WaitForServerStateRequest{
648648
UUID: serverDetails.UUID,
649649
DesiredState: upcloud.ServerStateStarted,
650-
Timeout: time.Minute * 5,
650+
Timeout: time.Minute * 15,
651651
})
652652

653653
handleError(err)
@@ -659,7 +659,7 @@ func createServer(name string) *upcloud.ServerDetails {
659659
func stopServer(uuid string) {
660660
serverDetails, err := svc.StopServer(&request.StopServerRequest{
661661
UUID: uuid,
662-
Timeout: time.Minute * 5,
662+
Timeout: time.Minute * 15,
663663
StopType: request.ServerStopTypeHard,
664664
})
665665

@@ -668,7 +668,7 @@ func stopServer(uuid string) {
668668
serverDetails, err = svc.WaitForServerState(&request.WaitForServerStateRequest{
669669
UUID: serverDetails.UUID,
670670
DesiredState: upcloud.ServerStateStopped,
671-
Timeout: time.Minute * 5,
671+
Timeout: time.Minute * 15,
672672
})
673673

674674
handleError(err)
@@ -734,7 +734,7 @@ func waitForStorageOnline(uuid string) {
734734
_, err := svc.WaitForStorageState(&request.WaitForStorageStateRequest{
735735
UUID: uuid,
736736
DesiredState: upcloud.StorageStateOnline,
737-
Timeout: time.Minute * 5,
737+
Timeout: time.Minute * 15,
738738
})
739739

740740
handleError(err)

0 commit comments

Comments
 (0)