File tree 3 files changed +5
-2
lines changed
PuppeteerSharp.Tests/WorkerTests
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 87
87
- name : Build
88
88
working-directory : lib
89
89
run : dotnet build PuppeteerSharp.sln
90
+ - name : Disable AppArmor
91
+ if : matrix.os == 'ubuntu-latest'
92
+ run : echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
90
93
- name : Test (Linux)
91
94
if : matrix.os == 'ubuntu-latest'
92
95
env :
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ await Task.WhenAll(
25
25
Page . GoToAsync ( TestConstants . ServerUrl + "/worker/worker.html" ) ) ;
26
26
var worker = Page . Workers [ 0 ] ;
27
27
Assert . That ( worker . Url , Does . Contain ( "worker.js" ) ) ;
28
- Assert . That ( await worker . EvaluateExpressionAsync < string > ( "self .workerFunction()" ) , Is . EqualTo ( "worker function result" ) ) ;
28
+ Assert . That ( await worker . EvaluateExpressionAsync < string > ( "globalThis .workerFunction()" ) , Is . EqualTo ( "worker function result" ) ) ;
29
29
30
30
await Page . GoToAsync ( TestConstants . EmptyPage ) ;
31
31
await workerDestroyedTcs . Task . WithTimeout ( ) ;
Original file line number Diff line number Diff line change 46
46
</ItemGroup >
47
47
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
48
48
<PackageReference Include =" Microsoft.Bcl.AsyncInterfaces" Version =" 8.0.0" />
49
- <PackageReference Include =" System.Text.Json" Version =" 8.0.4 " />
49
+ <PackageReference Include =" System.Text.Json" Version =" 8.0.5 " />
50
50
</ItemGroup >
51
51
<ItemGroup >
52
52
<AdditionalFiles Include =" ..\stylecop.json" Link =" stylecop.json" />
You can’t perform that action at this time.
0 commit comments