Skip to content

Commit 2ffe0ee

Browse files
authored
Fix log_retention test: use correct test run variable (#12884)
Test 7 ('Get the log to rotate.') was calling MakeCurlCommandMulti on test.tr (the test run from the TestLogRetention constructor) instead of the newly created tr. This left the new test run with no process defined, causing the test to fail with 'List came back empty.'
1 parent 1b6847f commit 2ffe0ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/gold_tests/logging/log_retention.test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def get_command_to_rotate_thrice(self):
488488
tr.StillRunningAfter = test.server
489489

490490
tr = Test.AddTestRun("Get the log to rotate.")
491-
test.tr.MakeCurlCommandMulti(test.get_command_to_rotate_once(), ts=test.ts)
491+
tr.MakeCurlCommandMulti(test.get_command_to_rotate_once(), ts=test.ts)
492492
tr.Processes.Default.ReturnCode = 0
493493
tr.StillRunningAfter = test.ts
494494
tr.StillRunningAfter = test.server

0 commit comments

Comments
 (0)