From 54bb7479ea6e9beaeb39246b3ed3cf3e930ec215 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 31 Aug 2022 10:28:25 +0100 Subject: [PATCH] Fix unit tests --- setup/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/config/config.go b/setup/config/config.go index 824795cb3..cc9c04470 100644 --- a/setup/config/config.go +++ b/setup/config/config.go @@ -224,7 +224,7 @@ func loadConfig( } privateKeyPath := absPath(basePath, c.Global.PrivateKeyPath) - if c.Global.KeyID, c.Global.PrivateKey, err = LoadMatrixKey(privateKeyPath, os.ReadFile); err != nil { + if c.Global.KeyID, c.Global.PrivateKey, err = LoadMatrixKey(privateKeyPath, readFile); err != nil { return nil, err }