Fix typo in chrome-test-utils
commitfcb100166a410d80ccd50aee10de82195bdeee4a
authorTom Smalley <tfsmalley@gmail.com>
dateWed 3 Jun 2020, 14:51 (6 years ago)
parent9c696a0
chrome-test-utils/chrome-test-utils.cabal+1−1
@@ -1,5 +1,5 @@
11Name: chrome-test-utils
2−Version: 0.4
2+Version: 0.5
33Synopsis: Utilities to write headless Chromium tests
44License: BSD3
55License-file: LICENSE
chrome-test-utils/src/Test/Util/UnshareNetwork.hs+2−2
@@ -4,8 +4,8 @@ import System.Linux.Namespaces
44import System.Posix
55import System.Process
66
7−unshareNetork :: IO ()
8−unshareNetork = do
7+unshareNetwork :: IO ()
8+unshareNetwork = do
99 uid <- getEffectiveUserID
1010 unshare [User, Network]
1111 writeUserMappings Nothing [UserMapping 0 uid 1]
reflex-dom-core/test/gc.hs+1−1
@@ -47,7 +47,7 @@ failureLimit = 0
4747
4848main :: IO ()
4949main = do
50− handle (\(_ :: IOError) -> return ()) $ unshareNetork -- If we run into an exception with sandboxing, just don't bother
50+ handle (\(_ :: IOError) -> return ()) $ unshareNetwork -- If we run into an exception with sandboxing, just don't bother
5151 withSandboxedChromeFlags True $ \chromeFlags -> do
5252 mainThread <- myThreadId
5353 browserProcess <- spawnCommand $ mconcat
reflex-dom-core/test/hydration.hs+1−1
@@ -137,7 +137,7 @@ deriving instance MonadFail WD
137137
138138main :: IO ()
139139main = do
140− unshareNetork
140+ unshareNetwork
141141 isHeadless <- (== Nothing) <$> lookupEnv "NO_HEADLESS"
142142 withSandboxedChromeFlags isHeadless $ \chromeFlags -> do
143143 withSeleniumServer $ \selenium -> do