mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-13 15:18:07 +03:00
Test fixes
This commit is contained in:
parent
ad21e90e90
commit
1dd679c391
@ -131,7 +131,7 @@ namespace Steamworks
|
||||
Receive();
|
||||
await Task.Delay( 100 );
|
||||
|
||||
if ( sw.Elapsed.TotalSeconds > 5 )
|
||||
if ( sw.Elapsed.TotalSeconds > 10 )
|
||||
{
|
||||
Assert.Fail( "Client Took Too Long" );
|
||||
break;
|
||||
@ -250,9 +250,9 @@ namespace Steamworks
|
||||
Receive();
|
||||
await Task.Delay( 100 );
|
||||
|
||||
if ( sw.Elapsed.TotalSeconds > 5 )
|
||||
if ( sw.Elapsed.TotalSeconds > 10 )
|
||||
{
|
||||
Assert.Fail( "Client Took Too Long" );
|
||||
Assert.Fail( "Socket Took Too Long" );
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -277,6 +277,7 @@ namespace Steamworks
|
||||
if ( str.Contains( "bye" ) )
|
||||
{
|
||||
connection.SendMessage( "See you later, hater." );
|
||||
connection.Flush();
|
||||
connection.Close( true, 10, "Said Bye" );
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ namespace Steamworks
|
||||
await Task.Delay( 1000 );
|
||||
list.Cancel();
|
||||
|
||||
foreach ( var s in list.Responsive.Take( 10 ) )
|
||||
foreach ( var s in list.Responsive.Take( 10 ).ToArray() )
|
||||
{
|
||||
Console.WriteLine( $"{s.Name} [{s.Address}]" );
|
||||
|
||||
|
@ -28,20 +28,21 @@ namespace Steamworks
|
||||
public async Task QueryWithTags()
|
||||
{
|
||||
var q = Ugc.Query.All
|
||||
.WithTag( "Fun" )
|
||||
.WithTag( "Movie" )
|
||||
.WithTag( "Version3" )
|
||||
.WithTag( "Hunting Bow" )
|
||||
.MatchAllTags();
|
||||
|
||||
var result = await q.GetPageAsync( 1 );
|
||||
Assert.IsNotNull( result );
|
||||
Assert.IsTrue( result?.ResultCount > 0 );
|
||||
|
||||
Console.WriteLine( $"ResultCount: {result?.ResultCount}" );
|
||||
Console.WriteLine( $"TotalCount: {result?.TotalCount}" );
|
||||
|
||||
foreach ( var entry in result.Value.Entries )
|
||||
{
|
||||
Assert.IsTrue( entry.HasTag( "Fun" ) );
|
||||
Assert.IsTrue( entry.HasTag( "Movie" ) );
|
||||
Assert.IsTrue( entry.HasTag( "Version3" ), "Has Tag Version3" );
|
||||
Assert.IsTrue( entry.HasTag( "Hunting Bow" ), "Has Tag HuntingBow" );
|
||||
|
||||
}
|
||||
}
|
||||
@ -83,13 +84,14 @@ namespace Steamworks
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public async Task QueryFoohy()
|
||||
public async Task QueryGarry()
|
||||
{
|
||||
var q = Ugc.UserQuery.All
|
||||
.FromUser( 76561197997689747 );
|
||||
.FromUser( 76561197960279927 );
|
||||
|
||||
var result = await q.GetPageAsync( 1 );
|
||||
Assert.IsNotNull( result );
|
||||
Assert.IsTrue( result?.ResultCount > 0 );
|
||||
|
||||
Console.WriteLine( $"ResultCount: {result?.ResultCount}" );
|
||||
Console.WriteLine( $"TotalCount: {result?.TotalCount}" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user