Skip to content

Commit

Permalink
Chore: use async tests as much as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
mindreframer committed Nov 9, 2023
1 parent 1ddd146 commit 5ee06e1
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/surrealdb/functions/array_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule ArrayTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealdb/functions/count_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule CountTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealdb/functions/math_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule MathTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealdb/statements/break_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule BreakTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealdb/statements/containsany_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule ContainsAnyTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealdb/statements/continue_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule ContinueTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealdb/statements/define_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule DefineTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealdb/statements/for_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule ForTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealdb/statements/if_else_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule IfElseTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealdb/statements/select_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule SelectTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealdb/statements/transactions_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule TransactionsTest do
use ExUnit.Case
use ExUnit.Case, async: true
use MnemeDefaults
import TestSupport

Expand Down
1 change: 1 addition & 0 deletions lib/surrealix/dispatch_test.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
defmodule Surrealix.DispatchTest do
# cant be async, uses a global gen ETS table!
use ExUnit.Case
alias Surrealix.Dispatch

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealix/socket_state_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Surrealix.SocketStateTest do
use ExUnit.Case
use ExUnit.Case, async: true

alias Surrealix.SocketState

Expand Down
2 changes: 1 addition & 1 deletion lib/surrealix_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Surrealix.Test do
use ExUnit.Case
use ExUnit.Case, async: true
import TestSupport

describe "basic API" do
Expand Down

0 comments on commit 5ee06e1

Please sign in to comment.