Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syncpool test #917 #927

Merged
merged 1 commit into from
Oct 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions scripts/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def createGolosIoAuthorityTrx(self):
return trx

def updateGolosIoAuthority(self):
trx = creatGolosIoAuthorityTrx()
trx = self.createGolosIoAuthorityTrx()

proposer = 'gls'
name = randomName()
Expand Down Expand Up @@ -612,13 +612,13 @@ def test_addpinblock(self):
user2 = createRandomAccount(public2)

testnet.pushAction('gls.social', 'addpin', 'gls.social@golos.io', {
"pinner": self.user1,
"pinning": self.user2
"pinner": user1,
"pinning": user2
}, providebw='gls.social/gls@providebw', keys=[golosIoKey])

testnet.pushAction('gls.social', 'addblock', 'gls.social@golos.io', {
"blocker": self.user2,
"blocking": self.user1
"blocker": user2,
"blocking": user1
}, providebw='gls.social/gls@providebw', keys=[golosIoKey])

def test_adddelpermlink(self):
Expand Down Expand Up @@ -646,6 +646,7 @@ def printRewardPools(self):
print('{pool_date} {date} {author}/{ident}'.format(
pool_date=msg['pool_date'], date=msg['date'], author=msg['author'], ident=msg['id']))

@unittest.skipUnless(os.environ.get("RUN_SKIPPED",False), "Test skipped due it should be executed on empty testnet")
def test_syncpool(self):
# Description: test for syncpool mechanics:
# Precondition: golos testnet with no closed posts (cyberway/golos.contracts:ci-skip-posts)
Expand Down