Skip to content

Some unit tests fail when run on systems with , as decimal separator #50

@robin-rexstedt-stretch

Description

@robin-rexstedt-stretch

The expected values for decimal numbers are formatted as 12.2 (which is correct, since that's what QuestDB itself expects), but the DummyHttpServer.PrintBuffer method uses a StringBuilder, which uses the current culture when appending formattable objects such as doubles.

Unfortunately, just changing the threads current culture to InvariantCulture doesn't work as there are some other tests that break in that case, notably the symbol becomes Infinity.

sv-SE is one of the locales/cultures that use , as decimal separator, if you want to reproduce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions