Commit 4dc42393 authored by Ramon Nou's avatar Ramon Nou Committed by Marc Vef
Browse files

Solved bug in forward remap test

parent f2092c3b
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ def test_two_io_nodes_remap(gkfwd_daemon_factory, gkfwd_client_factory):
        lines = f.readlines()

        for line in lines:
            if 'Forward to' in line:
            if 'forwarding_mapper() Forward to' in line:
                ion = line.split()[-1]

                assert ion == '0'
@@ -191,11 +191,12 @@ def test_two_io_nodes_remap(gkfwd_daemon_factory, gkfwd_client_factory):

    assert ret.retval == len(buf) # Return the number of read bytes
    
    # log line should go to the end of the file
    with open(c00.log) as f:
        lines = f.readlines()

        ion = 0
        for line in lines:
            if 'Forward to' in line:
            if 'forwarding_mapper() Forward to' in line:
                ion = line.split()[-1]

        assert ion == '1'