Giter Club home page Giter Club logo

Comments (3)

7k8m avatar 7k8m commented on June 14, 2024

There are possibility of problem of library.
So tried Microsoft.Data.Sqlite instead of System.Data.SQLite.

Run dotnet test --configuration Release
Test run for /home/runner/work/DirectSQL/DirectSQL/TestSqlLiteDatabase/bin/Release/netcoreapp3.1/TestSqlLiteDatabase.dll(.NETCoreApp,Version=v3.1)
Microsoft (R) Test Execution Command Line Tool Version 16.3.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

A total of 1 test files matched the specified pattern.
The active test run was aborted. Reason: Test host process crashed : Unhandled exception. System.InvalidOperationException: This SqliteTransaction has completed; it is no longer usable.
   at Microsoft.Data.Sqlite.SqliteTransaction.Rollback()
   at DirectSQL.Database`5.TransactionAsync(C connection, AsyncSqlExecution`2 execute) in /home/runner/work/DirectSQL/DirectSQL/DirectSQL/Database.cs:line 409
   at TestSqlLiteDatabase.TransactionTest.<>c.<<TestTransactionAsync>b__1_0>d.MoveNext() in /home/runner/work/DirectSQL/DirectSQL/TestSqlLiteDatabase/TransactionTest.cs:line 67
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_1(Object state)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


Test Run Aborted.
Total tests: Unknown
     Passed: 9
 Total time: 9.5987 Seconds
##[error]Process completed with exit code 1.
Run dotnet test --configuration Release
Test run for D:\a\DirectSQL\DirectSQL\TestSqlLiteDatabase\bin\Release\netcoreapp3.1\TestSqlLiteDatabase.dll(.NETCoreApp,Version=v3.1)
Microsoft (R) Test Execution Command Line Tool Version 16.3.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

A total of 1 test files matched the specified pattern.

Test Run Successful.
Total tests: 18
     Passed: 18
 Total time: 2.3543 Seconds

Result is same 🙁

from directsql.

7k8m avatar 7k8m commented on June 14, 2024

This might have some thing to do with this.
https://docs.microsoft.com/en-us/dotnet/standard/data/sqlite/async

from directsql.

7k8m avatar 7k8m commented on June 14, 2024

Finally, this was mistaken code in test.
Fixed in next
7d6392f

from directsql.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.