KNOX-2340 - Fix DefaultTokenStateServiceTest timeouts (#312)

Fix DefaultTokenStateServiceTest timeouts to be more
reasonable. I used TimeUnit every where to ensure we
are doing things with the correct unit of time.
Previously there were issues where milliseconds and
seconds were being mixed. This caused race conditions
in AliasBasedTokenStateServiceTest which extends
DefaultTokenStateServiceTest.

Signed-off-by: Kevin Risden <krisden@apache.org>
2 files changed
tree: 9b1268cf05e351cec9b5378123bd1215c9bcc9c7
  1. .github/
  2. build-tools/
  3. dev-support/
  4. gateway-adapter/
  5. gateway-admin-ui/
  6. gateway-applications/
  7. gateway-cm-integration/
  8. gateway-demo-ldap/
  9. gateway-demo-ldap-launcher/
  10. gateway-discovery-ambari/
  11. gateway-discovery-cm/
  12. gateway-docker/
  13. gateway-i18n/
  14. gateway-i18n-logging-log4j/
  15. gateway-i18n-logging-sl4j/
  16. gateway-provider-ha/
  17. gateway-provider-identity-assertion-common/
  18. gateway-provider-identity-assertion-concat/
  19. gateway-provider-identity-assertion-hadoop-groups/
  20. gateway-provider-identity-assertion-pseudo/
  21. gateway-provider-identity-assertion-regex/
  22. gateway-provider-identity-assertion-switchcase/
  23. gateway-provider-jersey/
  24. gateway-provider-rewrite/
  25. gateway-provider-rewrite-common/
  26. gateway-provider-rewrite-func-hostmap-static/
  27. gateway-provider-rewrite-func-inbound-query-param/
  28. gateway-provider-rewrite-func-service-registry/
  29. gateway-provider-rewrite-step-encrypt-uri/
  30. gateway-provider-rewrite-step-secure-query/
  31. gateway-provider-security-authc-anon/
  32. gateway-provider-security-authz-acls/
  33. gateway-provider-security-authz-composite/
  34. gateway-provider-security-clientcert/
  35. gateway-provider-security-hadoopauth/
  36. gateway-provider-security-jwt/
  37. gateway-provider-security-pac4j/
  38. gateway-provider-security-preauth/
  39. gateway-provider-security-shiro/
  40. gateway-provider-security-webappsec/
  41. gateway-release/
  42. gateway-release-common/
  43. gateway-server/
  44. gateway-server-launcher/
  45. gateway-server-xforwarded-filter/
  46. gateway-service-admin/
  47. gateway-service-as/
  48. gateway-service-definitions/
  49. gateway-service-hashicorp-vault/
  50. gateway-service-hbase/
  51. gateway-service-health/
  52. gateway-service-hive/
  53. gateway-service-impala/
  54. gateway-service-jkg/
  55. gateway-service-knoxsso/
  56. gateway-service-knoxssout/
  57. gateway-service-knoxtoken/
  58. gateway-service-livy/
  59. gateway-service-metadata/
  60. gateway-service-nifi/
  61. gateway-service-nifi-registry/
  62. gateway-service-remoteconfig/
  63. gateway-service-rm/
  64. gateway-service-storm/
  65. gateway-service-test/
  66. gateway-service-tgs/
  67. gateway-service-vault/
  68. gateway-service-webhdfs/
  69. gateway-shell/
  70. gateway-shell-launcher/
  71. gateway-shell-release/
  72. gateway-shell-samples/
  73. gateway-spi/
  74. gateway-test/
  75. gateway-test-release/
  76. gateway-test-release-utils/
  77. gateway-test-utils/
  78. gateway-topology-simple/
  79. gateway-util-common/
  80. gateway-util-configinjector/
  81. gateway-util-launcher/
  82. gateway-util-urltemplate/
  83. hadoop-examples/
  84. knox-cli-launcher/
  85. knox-homepage-ui/
  86. src/
  87. .gitattributes
  88. .gitignore
  89. .travis.yml
  90. build.xml
  91. CHANGES
  92. doap_Knox.rdf
  93. ISSUES
  94. LICENSE
  95. NOTICE
  96. pom.xml
  97. README