Re: Simple Sinatra app speed based failure?
h Kleiser <[email protected]> Thu, 18 Jul 2019 17:13:31 +0400
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <CA+Rtvue7nL3JJXN7mKjw6uJ4Q2OaZSRBGbK6ffMfW43tU_z-XQ@mail.gmail.com> |
Hi. When @ship.hull_size less than 200 there is no Medic on your ship, and on view @crew['medic'] is nil чт, 18 июл. 2019 г. в 14:10, Leam Hall <[email protected]>: > I have a simple Sinatra based app: > https://github.com/makhidkarun/ftl_tools > > That calls some defaults if data is not provided: > > https://github.com/makhidkarun/ftl_tools/blob/master/lib/ftl_tools/crewgen.rb#L60-L64 > > This morning I noticed that one set of basic tests would randomly (one, > both, neither) fail: > > https://github.com/makhidkarun/ftl_tools/blob/master/spec/unit/crewgen_spec.rb > > At first I thought my RSpec-fu was weak, but using curl to test gave > interesting results: > > https://github.com/makhidkarun/ftl_tools/blob/master/logs/speed_errors.txt > > In the speed_errors.txt log, the end column is "Current Speed". When the > speed is between 49K and 70K, the form returns what it's supposed to. > However, when the speed is in excess of 300K, the form does not return > properly, and the spec will either show a data failure, or a return code > failure. > > Thoughts? > > Leam > > > Unsubscribe: <mailto:[email protected]?subject=unsubscribe> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk> > Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>