Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added hint to expect failing test when requesting time containing inf…

…ormation from the internet
  • Loading branch information...
commit 668e3d0d15a1aa622042702517d0e0d537861b14 1 parent 04991ed
@lhankewitz authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 chap10/nano-http-server/README.TXT
View
17 chap10/nano-http-server/README.TXT
@@ -0,0 +1,17 @@
+sbt test may cause a failed test, e.g.
+
+[info] Light Server should
+[error] x return the contents of available resource
+[error] 'Date Thu Apr 19 17:51:55 CEST 2012' is not equal to 'Date Thu Apr 19 17:51:56 CEST 2012' (ServerSpecs.scala:10)
+[error] Expected: ...:51:5[6] CEST...
+[error] Actual: ...:51:5[5] CEST...
+
+This may be due to timing differences between your computer and the server where you lookup the data.
+
+You have at least two options:
+a) rerun with "sbt test" several times till the time difference is small enough to pass the test or
+b) calibrate your computer to the internet time of a reference server e.g. ntp1.theremailer.net and rerun the test which will
+ increase the possibility of a passed test. or
+c) change the test to check for the data independent of the time e.g. with a regular expression match.
+
+It's up to you :-)
Please sign in to comment.
Something went wrong with that request. Please try again.