The Status module that consumes go-ethereum https://status.im
Go to file
Eng Zer Jun 83ad76637a
test: use `T.TempDir` to create temporary test directory (#2746)
This commit replaces `os.MkdirTemp` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.

Prior to this commit, temporary directory created using `os.MkdirTemp`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
	defer func() {
		if err := os.RemoveAll(dir); err != nil {
			t.Fatal(err)
		}
	}
is also tedious, but `t.TempDir` handles this for us nicely.

Reference: https://pkg.go.dev/testing#T.TempDir

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-04-26 21:39:51 +01:00
.dependabot Patch/dependabot protocol (#1980) 2020-05-19 00:14:02 +01:00
.github fix documentation url in the checklist (#2770) 2022-07-22 22:12:29 +05:30
.vscode chore: fix vscode test run 2022-11-17 10:40:26 +01:00
_assets ci: drop go-1.19 label, Nix provides correct Go 2023-04-19 20:18:10 +02:00
_docs rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
_examples go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
abi-spec Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
account test: use `T.TempDir` to create temporary test directory (#2746) 2023-04-26 21:39:51 +01:00
api test: use `T.TempDir` to create temporary test directory (#2746) 2023-04-26 21:39:51 +01:00
appdatabase feat:support backup/sync ens name (#3415) 2023-04-26 23:37:18 +08:00
appmetrics feat: make kdf iterations configurable when creating a multiaccount (#2796) 2022-09-27 16:27:20 -04:00
build/bin add .gitkeep to build/bin so it always exists 2019-03-05 14:22:00 +01:00
cmd Set api modules 2023-04-26 18:11:05 +01:00
common Move services to status-node 2021-07-20 10:57:38 +02:00
config chore: add status.prod fleet (#2583) 2022-03-11 15:48:51 -05:00
connection Address linter issues 2022-03-28 13:14:12 +01:00
contracts feat: add ethscan to arbitrum and optimism 2023-03-20 15:44:35 +01:00
db Address linter issues 2022-03-28 13:14:12 +01:00
discovery chore: upgrade go-waku and log about messages sent/received 2022-11-09 17:39:17 +03:00
eth-node Use correct timesource in waku-2 2023-03-31 13:43:19 +01:00
exportlogs Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
extkeys Upgrade geth 2021-07-20 10:57:38 +02:00
images Add request to response when canceling request 2023-03-14 13:50:18 +00:00
ipfs fix: add mode build param and change ipfs gateway accordingly 2022-08-26 18:57:55 +02:00
logutils chore: bump go-waku to also log output from go-libp2p into geth.log 2023-02-02 16:26:25 -04:00
mailserver test: use `T.TempDir` to create temporary test directory (#2746) 2023-04-26 21:39:51 +01:00
metrics Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
mobile Intergrated with external API endpoint 2023-04-17 12:01:38 +01:00
multiaccounts feat:support backup/sync ens name (#3415) 2023-04-26 23:37:18 +08:00
node test: use `T.TempDir` to create temporary test directory (#2746) 2023-04-26 21:39:51 +01:00
nodecfg fix: add missing waku2 store columns 2023-01-26 13:47:47 -04:00
notifier Notifier package to interact with gorush notifications (#910) 2018-05-08 16:30:03 +02:00
params test: use `T.TempDir` to create temporary test directory (#2746) 2023-04-26 21:39:51 +01:00
peers synchronize display name (#2989) 2022-12-29 14:16:19 +08:00
postgres Anon Metrics Broadcast (#2198) 2021-09-01 13:02:18 +01:00
profiling test: use `T.TempDir` to create temporary test directory (#2746) 2023-04-26 21:39:51 +01:00
protocol test: use `T.TempDir` to create temporary test directory (#2746) 2023-04-26 21:39:51 +01:00
rpc feat: remove consecutive 2023-03-31 19:22:53 +02:00
rtt rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
server test: use `T.TempDir` to create temporary test directory (#2746) 2023-04-26 21:39:51 +01:00
services test: use `T.TempDir` to create temporary test directory (#2746) 2023-04-26 21:39:51 +01:00
signal feat: sync and backup wallet accounts 2023-04-21 16:35:24 +02:00
sqlite feat: Update saved addresses DB to store ENS, isTest flag and chains (#3183) 2023-03-06 16:26:46 +03:00
static feat:support backup/sync ens name (#3415) 2023-04-26 23:37:18 +08:00
t feat:support backup/sync ens name (#3415) 2023-04-26 23:37:18 +08:00
telemetry fix: reset bandwidth stats totals every day, and send message size 2023-02-01 16:43:57 -04:00
timesource Move services to status-node 2021-07-20 10:57:38 +02:00
transactions feat: nonce management in multi tx 2023-01-12 12:56:57 +01:00
vendor Rough initial proof of concept for udp network checking 2023-04-17 12:01:38 +01:00
waku Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
wakuv2 fix: open/close of channels 2023-04-19 09:11:28 -04:00
.codeclimate.yml Re-organise the code to be more modular (#3172) 2023-03-01 17:23:17 +05:30
.dockerignore Ignore *.test files from all folders (#635) 2018-02-08 14:23:08 +02:00
.gitignore feat: add visual identity service (#2550) 2022-03-11 16:17:48 -05:00
.golangci.yml Remove protocol and eth-node submodules (#1835) 2020-02-10 12:22:37 +01:00
.travis.yml Remove Ropsten and Rinkeby test networks 2022-10-24 14:17:46 +02:00
BOOTNODE.md docs: clarify purpose and describe ports 2020-02-06 18:44:23 +01:00
CMakeLists.txt dev: allow option to force compiling for apple silicon 2022-06-30 09:42:19 +02:00
CONTRIBUTING.md rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
LICENSE.md Create LICENSE.md 2016-09-21 10:00:29 +08:00
MAILSERVER.md rcp.sh: curl wrapper for easier RPC calls 2021-08-24 11:23:25 +02:00
Makefile chore: use go 1.19 and bump go-libp2p (#3371) 2023-04-07 20:23:07 +02:00
README.md Explain how to run Waku node in README (#1921) 2020-04-09 18:33:53 +02:00
RELEASING.md rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
VERSION feat:support backup/sync ens name (#3415) 2023-04-26 23:37:18 +08:00
WAKU.md Create WAKU.md with spec support (#1855) 2020-02-21 17:56:15 +08:00
go.mod feat:support backup/sync social settings (#3407) 2023-04-20 06:59:09 +08:00
go.sum Rough initial proof of concept for udp network checking 2023-04-17 12:01:38 +01:00
nix.conf ci: use Nix shell to provide Android SDK for builds 2022-12-05 15:48:27 +01:00
shell.nix chore: use go 1.19 and bump go-libp2p (#3371) 2023-04-07 20:23:07 +02:00