| commit | 3eb7d033642ebaaddccde287d5ad3c8c59f7a576 | [log] [tgz] |
|---|---|---|
| author | Tim Windelschmidt <tim@monogon.tech> | Tue Jan 28 15:21:08 2025 +0100 |
| committer | Lorenz Brun <lorenz@monogon.tech> | Tue Jan 28 15:42:56 2025 +0000 |
| tree | fc445693dbc22be3008a69857e0af4992ca4c8ab | |
| parent | d634975c7d113b8ec093dae261288b10080283e0 [diff] |
osbase/bringup/test: fix flake in bringup test Change-Id: I17f51ea922be95e2d81b972b406bee13de3d202c Reviewed-on: https://review.monogon.dev/c/monogon/+/3813 Tested-by: Jenkins CI Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/osbase/bringup/test/main_succeeded.go b/osbase/bringup/test/main_succeeded.go index 930455c..b86d314 100644 --- a/osbase/bringup/test/main_succeeded.go +++ b/osbase/bringup/test/main_succeeded.go
@@ -3,6 +3,7 @@ import ( "context" "fmt" + "time" "golang.org/x/sys/unix" @@ -12,6 +13,7 @@ func main() { bringup.Runnable(func(ctx context.Context) error { fmt.Println("_BRINGUP_LAUNCH_SUCCESS_") + time.Sleep(5 * time.Second) unix.Reboot(unix.LINUX_REBOOT_CMD_POWER_OFF) return nil }).Run()