@@ -54,8 +54,8 @@ pub async fn get_database_connection() -> Result<DatabaseConnection, DbErr> {
54
54
mod tests {
55
55
56
56
use super :: * ;
57
- use sea_orm:: entity:: * ;
58
57
use tokio;
58
+ use serial_test:: serial;
59
59
60
60
/**
61
61
* Sets up the initial test environment (database connection and env variables)
@@ -72,6 +72,7 @@ mod tests {
72
72
* @return () - The result of the test
73
73
*/
74
74
#[ tokio:: test]
75
+ #[ serial]
75
76
async fn test_establish_connection_with_env_url ( ) {
76
77
init ( ) ;
77
78
let connection_result = setup ( ) . await ;
@@ -85,6 +86,7 @@ mod tests {
85
86
* @return () - The result of the test
86
87
*/
87
88
#[ tokio:: test]
89
+ #[ serial]
88
90
async fn test_create_allocator ( ) {
89
91
setup_test_environment ( ) . await ;
90
92
@@ -118,6 +120,7 @@ mod tests {
118
120
* @return () - The result of the test
119
121
*/
120
122
#[ tokio:: test]
123
+ #[ serial]
121
124
async fn test_get_allocators ( ) {
122
125
setup_test_environment ( ) . await ;
123
126
@@ -132,6 +135,7 @@ mod tests {
132
135
* @return () - The result of the test
133
136
*/
134
137
#[ tokio:: test]
138
+ #[ serial]
135
139
async fn test_update_allocator ( ) {
136
140
setup_test_environment ( ) . await ;
137
141
@@ -179,6 +183,7 @@ mod tests {
179
183
* @return () - The result of the test
180
184
*/
181
185
#[ tokio:: test]
186
+ #[ serial]
182
187
async fn test_get_allocator ( ) {
183
188
setup_test_environment ( ) . await ;
184
189
@@ -195,6 +200,7 @@ mod tests {
195
200
* @return () - The result of the test
196
201
*/
197
202
#[ tokio:: test]
203
+ #[ serial]
198
204
async fn test_delete_allocator ( ) {
199
205
setup_test_environment ( ) . await ;
200
206
0 commit comments