How to prevent `Updating registry; Resolving package`, while running `Pkg> test`

I am developing some package. I run Pkg> test for testing purpose. However, every time it take some time to update registry, git-repo and resolving package versions. If I work without network, it even fails. Is there any way to prevent this?

Updating registry at `C:\Users\zhangly\.julia\registries\General`
Updating git-repo ``
Testing Hotspot
Resolving package versions... might fix this (will be in 1.4)