Skip to content

Commit 5f56b22

Browse files
committed
test
1 parent 26fcee9 commit 5f56b22

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/ElectronNET.API/API/WebContents.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void OpenDevTools(OpenDevToolsOptions openDevToolsOptions)
139139
/// Get system printers.
140140
/// </summary>
141141
/// <returns>printers</returns>
142-
public Task<PrinterInfo[]> GetPrintersAsync() => this.InvokeAsyncWithTimeout<PrinterInfo[]>(10_000);
142+
public Task<string> GetPrintersAsync() => this.InvokeAsyncWithTimeout<string>(10_000);
143143

144144
/// <summary>
145145
/// Prints window's web page.

src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public async Task GetPrintersAsync_check()
7777
{
7878
Skip.If(Environment.GetEnvironmentVariable("GITHUB_TOKEN") != null, "Skipping printer test in CI environment.");
7979
var info = await fx.MainWindow.WebContents.GetPrintersAsync();
80+
81+
Console.Error.WriteLine("GetPrintersAsync_check: " + info);
8082
info.Should().NotBeNull();
8183
}
8284
}

0 commit comments

Comments
 (0)