Running tests fails with a shogi-server running in a Docker container
Some test cases depend on a log directory. Running tests against a shogi-server running in a Docker container does not complete successfully.
====================================================================================================================================================== Failure: <false> is not true. test_toryo(TestClientAtmark) /Users/daigo/rubyprojects/shogi-server/test/TC_functional.rb:30:in `test_toryo' 27: day = now.strftime("%d") 28: path = File.join( File.dirname(__FILE__), "..", year, month, day, "*atmark-1500-0*") 29: log_files = Dir.glob(path) => 30: assert(!log_files.empty?) 31: sleep 0.1 32: log_content = File.read(log_files.sort.last) 33: ====================================================================================================================================================== ====================================================================================================================================================== Failure: <false> is not true. test_toryo(TestHandicappedGame) /Users/daigo/rubyprojects/shogi-server/test/TC_functional.rb:99:in `test_toryo' 96: day = now.strftime("%d") 97: path = File.join( File.dirname(__FILE__), "..", year, month, day, "*hc2p_hoge-1500-0*") 98: log_files = Dir.glob(path) => 99: assert(!log_files.empty?) 100: sleep 0.1 101: log_content = File.read(log_files.sort.last) 102: ======================================================================================================================================================
Some test cases depend on a log directory. Running tests against a shogi-server running in a Docker container does not complete successfully.