Commit 35c72211 authored by Ramon Nou's avatar Ramon Nou
Browse files

more fairless for malleability test

parent d3b6f976
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -75,17 +75,17 @@ def test_malleability(gkfwd_daemon_factory, gkfs_client, gkfs_shell):
    assert cmd.stdout.decode() == "Expansion process from 2 nodes to 3 nodes launched...\n"
    assert cmd.exit_code == 0
    
    time.sleep(10)
    while True:
        cmd = gkfs_shell.gkfs_malleability('expand','status')
        if cmd.stdout.decode() == "No expansion running/finished.\n":
        if cmd.exit_code == 0:
            break
        time.sleep(1)
        time.sleep(2)

    cmd = gkfs_shell.gkfs_malleability('expand','finalize')
    assert cmd.stdout.decode() == "Expand finalize 0\n"
    assert cmd.exit_code == 0


    d00.shutdown()
    d01.shutdown()
    d02.shutdown()