Skip to content

suspicious inconsistent behaviour between posix vs windows regarding server teardown #40

@jangko

Description

@jangko

when writing tests for UTF8, I forget to insert tear down code like snippet below.

on windows it still run ok, but on linux it scream with addr in use.
I was expecting same behavior on both windows and posix os.

  var server: HttpServerRef
  let address = initTAddress("127.0.0.1:8888")

  suite "UTF-8 validator in action":
    teardown:
      await server.stop()
      await server.closeWait()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions