commit 5c586da8e89b7c8cac79b2eb6e82e24cbe42fe62 from: Sergey Bronnikov via: Sergey Bronnikov date: Mon Jul 03 12:41:35 2023 UTC test: fix flakiness in test Needed for # 6128 NO_CHANGELOG=fix test NO_DOC=fix test commit - 47380bb7626544800239ca179a6b2c490ebb6d1c commit + 5c586da8e89b7c8cac79b2eb6e82e24cbe42fe62 blob - 5c60f8dab1fd871da4413e0e39b818b761a4df1b blob + f660e727b368364e6458340cc4424fa757f91c38 --- test/app-luatest/gh_6128_background_mode_test.lua +++ test/app-luatest/gh_6128_background_mode_test.lua @@ -22,6 +22,7 @@ local function check_err_msg(file, msg) local f = fio.open(file, {'O_RDONLY', 'O_NONBLOCK'}) t.assert_not_equals(f, nil) local content = f:read(2048) + print(content) f:close() return (string.match(content, msg) and true) or false end @@ -91,6 +92,7 @@ g.before_test("test_background_mode_env_vars", functio env = env, }) t.assert_is_not(g.ph, nil) + print("XXXXXXXXXXXXXXXXXXXX", g.log_path) t.helpers.retrying({timeout = 2, delay = 0.01}, function(path) assert(fio.path.exists(path) == true) end, g.log_path)