zt_service_tests.go 256 B

1234567891011121314151617181920212223
  1. package main
  2. import (
  3. "os"
  4. "runtime"
  5. "runtime/debug"
  6. )
  7. const numToRun = 10000
  8. func main() {
  9. runtime.GOMAXPROCS(1)
  10. debug.SetGCPercent(10)
  11. for k:=0;k<numToRun;k++ {
  12. if !TestCertificate(){
  13. os.Exit(1)
  14. }
  15. if !TestLocator(){
  16. os.Exit(1)
  17. }
  18. }
  19. }