Skip to content
Snippets Groups Projects
  1. Feb 07, 2025
    • Антон Фетисов's avatar
      test: specify explicit non-numeric hosts in tests · 32091915
      Антон Фетисов authored
      All-numeric domains are now considered invalid, since they introduce confusion: one can assume
      that an all-numeric domain is a port, and the server should bind to `localhost` with that port.
      
      The specific change to domain parsing happens in a future commit. This commit fixes the tests in
      preparation for it.
      
      Note that all-numeric top-level domains are considered invalid according to RFC 952 and RFC 1123.
      In fact, the top-level domain label must be alphabetic, but we do not place that restriction, since
      local domains could have arbitrary format.
      32091915
    • Антон Фетисов's avatar
      test: in some tests, don't check for specific error messages · 8300c4f4
      Антон Фетисов authored
      Checking for specific error messages is fragile. Any cosmetic change to the message,
      such as fixing a typo or enabling coloured output, causes test breakage. It also
      prevents us from designing any better errors, or including backtrace or source trace
      in error messages. We also shouldn't depend on the specific error being returned. For
      example, connecting to an invalid host can return various errors, including timeout
      errors or host resolution errors, and the errors may depend on the specifics of OS and
      network connectivity (e.g. a network error can change a DNS resolution error into a
      DNS timeout).
      
      Instead, use regular expressions to check for presence of errors, without depending on the
      specific text.
      8300c4f4
    • Антон Фетисов's avatar
      test: clear mutex poisoning in env tests · 74c8fde4
      Антон Фетисов authored
      Mutex is held for the duration of the whole tests, and poisons if the test panics, making all
      other env tests fail with PoisonError. Panicking tests is expected behaviour during development.
      We don't introduce any inconsistency by clearing the poison, since the only invariant that the
      mutex protects is that tests don't concurrently access the environment (which must be blocked for
      the whole test duration, since tests depend on the specific change order of env variables) and that
      the environment is unconditionally restored when the test terminates, including panics.
      74c8fde4
    • Антон Фетисов's avatar
    • Erik Khamitov's avatar
  2. Feb 06, 2025
  3. Feb 05, 2025
  4. Feb 04, 2025
  5. Feb 03, 2025
  6. Jan 31, 2025
  7. Jan 30, 2025
  8. Jan 29, 2025
Loading