             MockIntegration(number: 1, step: Integration.Step.Building, sha: "head_sha_old"),
         ]
         
-        let actions = SyncPairPRResolver().resolveActionsForCommitAndIssueWithBotIntegrations(commit, issue: pr, bot: bot, integrations: integrations)
+        let actions = SyncPairPRResolver().resolveActionsForCommitAndIssueWithBotIntegrations(commit, issue: pr, bot: bot, hostname: "localhost", integrations: integrations)
         
         XCTAssertEqual(actions.integrationsToCancel!.count, 1)
         XCTAssertNotNil(actions.startNewIntegrationBot)

            MockIntegration(number: 1, step: Integration.Step.Building),
        ]
        
        let actions = SyncPairPRResolver().resolveActionsForCommitAndIssueWithBotIntegrations(commit, issue: pr, bot: bot, integrations: integrations)
        
        XCTAssertEqual(actions.integrationsToCancel!.count, 0)
        XCTAssertNil(actions.startNewIntegrationBot)

            MockIntegration(number: 3, step: Integration.Step.Pending)
        ]
        
        let actions = SyncPairPRResolver().resolveActionsForCommitAndIssueWithBotIntegrations(commit, issue: pr, bot: bot, hostname: "localhost", integrations: integrations)
        
        //should cancel all except for the last one
        let toCancel = Set(actions.integrationsToCancel!)
