Skip to content

Commit

Permalink
Improve error when disabling heartbeat
Browse files Browse the repository at this point in the history
Fixes #1756

* Add test that demonstrates the issue.
  • Loading branch information
lukebakken committed Jan 23, 2025
1 parent 75822ae commit 9c6fda8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions projects/Test/Integration/GH/TestGitHubIssues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,17 @@ public async Task TestBasicConsumeCancellation_GH1750()

Assert.False(sawConnectionShutdown);
}

[Fact]
public async Task TestHeartbeatTimeoutValue_GH1756()
{
var connectionFactory = new ConnectionFactory
{
AutomaticRecoveryEnabled = true,
RequestedHeartbeat = TimeSpan.Zero,
};

_conn = await connectionFactory.CreateConnectionAsync("some-name");
}
}
}

0 comments on commit 9c6fda8

Please sign in to comment.