Skip to content

Commit

Permalink
#730 remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jand42 committed Jan 8, 2018
1 parent 5efef80 commit 0a8b0ad
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tests/WebSharper.CSharp.Tests/Remoting.cs
Expand Up @@ -115,18 +115,7 @@ public static int Zero()

static Server()
{
// test IsClient
if (WebSharper.Pervasives.IsClient)
{
throw (new Exception("This should not happen: IsClient is true on the server"));
}
else
{
if (!WebSharper.Pervasives.IsClient)
{
WebSharper.Core.Remoting.AddHandler(typeof(Handler), new HandlerImpl());
}
}
WebSharper.Core.Remoting.AddHandler(typeof(Handler), new HandlerImpl());
}
}

Expand Down

0 comments on commit 0a8b0ad

Please sign in to comment.