Skip to content

Commit 9c6fda8

Browse files
committed
Improve error when disabling heartbeat
Fixes #1756 * Add test that demonstrates the issue.
1 parent 75822ae commit 9c6fda8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

projects/Test/Integration/GH/TestGitHubIssues.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,17 @@ public async Task TestBasicConsumeCancellation_GH1750()
117117

118118
Assert.False(sawConnectionShutdown);
119119
}
120+
121+
[Fact]
122+
public async Task TestHeartbeatTimeoutValue_GH1756()
123+
{
124+
var connectionFactory = new ConnectionFactory
125+
{
126+
AutomaticRecoveryEnabled = true,
127+
RequestedHeartbeat = TimeSpan.Zero,
128+
};
129+
130+
_conn = await connectionFactory.CreateConnectionAsync("some-name");
131+
}
120132
}
121133
}

0 commit comments

Comments
 (0)