1run(function()
2   port:set_wares {
3      blackwood = 100,
4      log = 100,
5      gold = 20,
6      granite = 20,
7      grout = 20,
8      iron = 20,
9      reed = 20,
10   }
11   port:set_workers("barbarians_builder", 5)
12
13   create_two_ships()
14   port:start_expedition()
15   wait_for_message("Expedition")
16   port:start_expedition()
17   wait_for_message("Expedition")
18
19   first_ship.island_explore_direction="ccw"
20   sleep(2000)
21   assert_equal("ccw", first_ship.island_explore_direction)
22   wait_for_message("Port Space")
23   second_ship.island_explore_direction="ccw"
24   sleep(2000)
25   assert_equal("ccw", second_ship.island_explore_direction)
26   wait_for_message("Port Space")
27
28   second_ship:build_colonization_port()
29   sleep(5000)
30   first_ship:build_colonization_port()
31   -- This test is to check that there won't be any crash now
32   wait_for_message("Port")
33
34   print("# All Tests passed.")
35   wl.ui.MapView():close()
36end)
37