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 integration test #11

Open
briancolfer-upstart opened this issue Nov 16, 2020 · 2 comments
Open

Fix integration test #11

briancolfer-upstart opened this issue Nov 16, 2020 · 2 comments

Comments

@briancolfer-upstart
Copy link

Starting at line 77 in test/integration/groovy/com/mkobit/libraryexample/ExampleSrcSpockSpec.groovy:

   then:
    // JenkinsRule has different assertion capabilities
    WorkflowRun run = rule.assertBuildStatusSuccess(futureRun)
    rule.assertLogContains('''
        [Pipeline] lock
        Trying to acquire lock on [myLock]
        Resource [myLock] did not exist. Created.
        Lock acquired on [myLock]
    '''.stripIndent(), run)
  }

should be

  then:
    // JenkinsRule has different assertion capabilities
    WorkflowRun run = rule.assertBuildStatusSuccess(futureRun)
    rule.assertLogContains('''
    [Pipeline] lock
    Trying to acquire lock on [myLock]
    Resource [myLock] did not exist. Created.
    Lock acquired on [myLock]
    '''.stripIndent(), run)
  }
@tejindrakhatri1
Copy link

Actually it should be like this: semicolon at the end.

WorkflowRun run = rule.assertBuildStatusSuccess(futureRun);
rule.assertLogContains('''
[Pipeline] lock
Trying to acquire lock on [myLock]
Resource [myLock] did not exist. Created.
Lock acquired on [myLock]
'''.stripIndent(), run);

@tejindrakhatri1
Copy link

Actually it should be like this: semicolon at the end.

WorkflowRun run = rule.assertBuildStatusSuccess(futureRun); rule.assertLogContains(''' [Pipeline] lock Trying to acquire lock on [myLock] Resource [myLock] did not exist. Created. Lock acquired on [myLock] '''.stripIndent(), run);

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

No branches or pull requests

2 participants