Skip to content

Add basic tests for Locks and minor fixes#5

Open
hindenbug wants to merge 1 commit intoPeppertap:masterfrom
hindenbug:master
Open

Add basic tests for Locks and minor fixes#5
hindenbug wants to merge 1 commit intoPeppertap:masterfrom
hindenbug:master

Conversation

@hindenbug
Copy link
Contributor

No description provided.

@hindenbug
Copy link
Contributor Author

self.config.redis.lpush(key, timestamp.strftime("%s")) Wouldn't it be better if we take timestamp as an input instead of the datetime object ?

monarch/locks.py Outdated
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Timestamp (epoch) makes sense or datetime object ?

@shishirsharma
Copy link
Contributor

We do some calculation based on the date object in init:throttle() . I am using default serialisation of date object. Which is kind of Json version of this. I think this is what has caused your build to fail.

@hindenbug hindenbug changed the title Add tests for Locks and minor fixes, TODO: Refactoring required, dupl… Add basic tests for Locks and minor fixes Dec 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants