-
-
Notifications
You must be signed in to change notification settings - Fork 959
Enable all net48 integration tests and stabilise tests #1456
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
944f1ff
Enable all net48 integration tests
scott-xu 8d58888
Skip ECDsa in net48 integration tests
scott-xu b5547cf
Merge branch 'develop' into net48_integration-test
scott-xu b507b6d
Stabilise tests
scott-xu 494a44f
Stabilise tests
scott-xu 50838f8
Stabilise tests
scott-xu 071bdd7
Stabilise tests
scott-xu 7159c60
Spelling
scott-xu 43319dd
Merge branch 'develop' of https://github.com/scott-xu/SSH.NET into ne…
scott-xu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ public void ClientVersionIsRenciSshNet() | |
[TestMethod] | ||
public void IncludeStrictKexPseudoAlgorithmInInitKex() | ||
{ | ||
Assert.IsTrue(FirstKexReceived.Wait(1000)); | ||
Assert.IsTrue(ServerBytesReceivedRegister.Count > 0); | ||
|
||
var kexInitMessage = new KeyExchangeInitMessage(); | ||
|
@@ -51,7 +52,9 @@ public void IncludeStrictKexPseudoAlgorithmInInitKex() | |
[TestMethod] | ||
public void ShouldNotIncludeStrictKexPseudoAlgorithmInSubsequentKex() | ||
{ | ||
using var kexReceived = new ManualResetEventSlim(); | ||
Assert.IsTrue(FirstKexReceived.Wait(1000)); | ||
|
||
using var subsequentKexReceived = new ManualResetEventSlim(); | ||
bool kexContainsPseudoAlg = true; | ||
|
||
ServerListener.BytesReceived += ServerListener_BytesReceived; | ||
|
@@ -64,13 +67,13 @@ void ServerListener_BytesReceived(byte[] bytesReceived, System.Net.Sockets.Socke | |
var kexInitMessage = new KeyExchangeInitMessage(); | ||
kexInitMessage.Load(bytesReceived, 6, bytesReceived.Length - 6); | ||
kexContainsPseudoAlg = kexInitMessage.KeyExchangeAlgorithms.Contains("[email protected]"); | ||
kexReceived.Set(); | ||
subsequentKexReceived.Set(); | ||
} | ||
} | ||
|
||
Session.SendMessage(Session.ClientInitMessage); | ||
|
||
Assert.IsTrue(kexReceived.Wait(1000)); | ||
Assert.IsTrue(subsequentKexReceived.Wait(1000)); | ||
Assert.IsFalse(kexContainsPseudoAlg); | ||
|
||
ServerListener.BytesReceived -= ServerListener_BytesReceived; | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.