Skip to content

Instantly share code, notes, and snippets.

@Fluxx
Created July 31, 2012 22:05
Show Gist options
  • Select an option

  • Save Fluxx/3221082 to your computer and use it in GitHub Desktop.

Select an option

Save Fluxx/3221082 to your computer and use it in GitHub Desktop.
======================================================================
ERROR: test_service_additions_work (tests.chattr.test_integration.TestKafkaTpoicIntegration)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jeff/Code/chattr.io/client/tests/chattr/test_integration.py", line 53, in test_service_additions_work
returned = self.send_receive(self.valid_message)
File "/Users/jeff/Code/chattr.io/client/tests/chattr/test_integration.py", line 40, in send_receive
self.channel.send(message)
File "/Users/jeff/Code/chattr.io/client/src/chattr/io/models.py", line 90, in send
return self.__delegate('send', self.translator.encode(prepped), block)
File "/Users/jeff/Code/chattr.io/client/src/chattr/io/models.py", line 63, in __delegate
return getattr(self.__engine, method)(self.name, *args, **kwargs)
File "/Users/jeff/Code/chattr.io/client/src/chattr/io/engines/kafka.py", line 29, in send
self.topics[channel_name].publish(message)
File "/Users/jeff/Code/samsa/samsa/topics.py", line 81, in publish
partition = random.choice(list(self.partitions))
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/random.py", line 261, in choice
return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment