fix: Fix-Runde 1 für Task 4 - Reset nur bei akzeptiertem OTA-Image, hängende Downloads/Sessions begrenzen
This commit is contained in:
+2
-2
@@ -323,8 +323,8 @@ static void test_commands(void)
|
||||
TEST_ASSERT_EQUAL_INT(1, fake_factory_calls);
|
||||
|
||||
call(NL_HTTP_PUT, "/api/v1/system/command", TOKEN, "{\"command\":{\"type\":\"fw_update\",\"url\":\"http://x/y.img\"}}");
|
||||
TEST_ASSERT_EQUAL_INT(501, resp.status);
|
||||
TEST_ASSERT_EQUAL_STRING("fw_update not available", error_text());
|
||||
TEST_ASSERT_EQUAL_INT(409, resp.status);
|
||||
TEST_ASSERT_EQUAL_STRING("fw_update busy or invalid url", error_text());
|
||||
TEST_ASSERT_EQUAL_STRING("http://x/y.img", fake_fw_url);
|
||||
fake_fw_result = 0;
|
||||
call(NL_HTTP_PUT, "/api/v1/system/command", TOKEN, "{\"command\":{\"type\":\"fw_update\",\"url\":\"http://x/y.img\"}}");
|
||||
|
||||
Reference in New Issue
Block a user