Commit d4043ba1 authored by Samuel GAIST's avatar Samuel GAIST

[test][worker] Fix test string/bytes data creation for comparison

parent 2903e928
Pipeline #19438 canceled with stage
in 36 minutes and 22 seconds
......@@ -366,7 +366,7 @@ class TestConnection(TestWorkerBase):
self.start_worker(WORKER1, 'tcp://127.0.0.1:50999')
message = controller.queue.get()
self.assertEqual(message, 'READY ' + WORKER1)
self.assertEqual(message, 'READY %s' % WORKER1)
controller.queue.put('STOP')
......@@ -379,7 +379,7 @@ class TestConnection(TestWorkerBase):
self.assertEqual(message, 'STARTED')
message = controller.queue.get()
self.assertEqual(message, 'READY ' + WORKER1)
self.assertEqual(message, 'READY %s' % WORKER1)
controller.queue.put('STOP')
......@@ -530,7 +530,7 @@ class TestOneWorker(TestWorkerBase):
self.assertEqual(worker, WORKER1)
self.assertEqual(status, WorkerController.ERROR)
self.assertTrue(job_id is None)
self.assertEqual(data[0], "Unknown job: 1")
self.assertEqual(data[0], b"Unknown job: 1")
#----------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment