twitter-archive / kestrel

simple, distributed message queue system (inactive)
http://twitter.github.io/kestrel
Other
2.78k stars 313 forks source link

New AliasedQueueSpec added #103

Closed rvoicilas closed 12 years ago

rvoicilas commented 12 years ago

The indentation from github's commit diff seems to be wrong, but the actual indentation in the file is ok. Also, I've added to .gitignore the files and folders that emacs' ensime generates.

zuercher commented 12 years ago

Sorry for the slow response. The formatting issue is because your patch uses tabs -- we'd prefer spaces only.

For the tests related to stats, I don't see much benefit in pattern:

for(i <- 0 to 2) i match {
  case 0 => ...
  case 1 => ...
  case 2 => ...
}

I think it's just confusing. If you call toMap on the result of dumpStats, you could loose the for block and replace it with 3 lines that look like:

stats("put_items") mustEqual "0"

I don't think the order of the stats is of particular importance.

rvoicilas commented 12 years ago

Sorry, I am just starting out with Scala so I am not yet writing idiomatic code - I thought adding some specs to kestrel is a good starting point. Anyways, the code is much cleaner now using a map instead of that pattern and hopefully the tabs are now replaced by spaces.

zuercher commented 12 years ago

Always happy for more tests. Thanks!