Skip to content

Commit

Permalink
do not use tinyurl in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
filipw committed May 7, 2024
1 parent b8f4136 commit 9844fc7
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/Dotnet.Script.Tests/ScriptExecutionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ public void ShouldSupportInlineNugetReferencesWithTrailingSemicoloninEvaluatedCo

[Theory]
[InlineData("https://gist.githubusercontent.com/seesharper/5d6859509ea8364a1fdf66bbf5b7923d/raw/0a32bac2c3ea807f9379a38e251d93e39c8131cb/HelloWorld.csx",
"Hello World")]
"Hello World")]
[InlineData("http://gist.githubusercontent.com/seesharper/5d6859509ea8364a1fdf66bbf5b7923d/raw/0a32bac2c3ea807f9379a38e251d93e39c8131cb/HelloWorld.csx",
"Hello World")]
[InlineData("https://github.com/dotnet-script/dotnet-script/files/5035247/hello.csx.gz",
"Hello, world!")]
public void ShouldExecuteRemoteScript(string url, string output)
Expand All @@ -259,14 +261,6 @@ public void ShouldExecuteRemoteScript(string url, string output)
Assert.Contains(output, result.Output);
}

[Fact]
public void ShouldExecuteRemoteScriptUsingTinyUrl()
{
var url = "https://tinyurl.com/y8cda9zt";
var (output, _) = ScriptTestRunner.Default.Execute(url);
Assert.Contains("Hello World", output);
}

[Fact]
public void ShouldHandleIssue268()
{
Expand Down

0 comments on commit 9844fc7

Please sign in to comment.