Skip to content

Commit

Permalink
Fix controller-proxy integration test to match update logging
Browse files Browse the repository at this point in the history
Previously logs were split into multiple lines, like so:

    [INFO] update mechanism: (Downloading
        (url http://update-server.local/9.9.9-TEST/playos-9.9.9-TEST.raucb)
        (version 9.9.9-TEST))

since the Downloading state has been simplified to only include the
version and no url, it now gets logged in a single line.
  • Loading branch information
yfyf committed Oct 24, 2024
1 parent 658f5a7 commit c17088b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions testing/integration/controller-proxy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,8 @@ with TestCase("Controller uses proxy for captive portal"):
with TestCase("Controller is able to query the version and initiate download"):
wait_for_logs(playos,
"update mechanism.*Downloading",
f"Downloading.*{latest_version}",
unit="playos-controller.service",
timeout=61)
wait_for_logs(playos,
f"version.*{latest_version}",
unit="playos-controller.service",
timeout=3)
'';
}

0 comments on commit c17088b

Please sign in to comment.