Ticket #36823

Running tests fails with a shogi-server running in a Docker container

Date d'ouverture: 2016-11-26 18:20 Dernière mise à jour: 2016-11-26 18:20

Rapporteur:
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun

Détails

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:
======================================================================================================================================================

Ticket History (1/1 Histories)

2016-11-26 18:20 Updated by: beatles
  • New Ticket "Running tests fails with a shogi-server running in a Docker container" created

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion