Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Ninja-standalone updates test failed to commit data into database #3216

@greenlaw110

Description

@greenlaw110

OS (Please include kernel version)

Linux mint 18
4.13.0-32-generic #35~16.04.1-Ubuntu SMP
x86_64 x86_64 x86_64

Expected Behavior

Updates test committed the changed world record into database

Actual Behavior

The changed world record did not committed into database

Steps to reproduce behavior

  1. Run ninja-standalone on local server with script setup.sh
  2. send a request to http://localhost:8080/update
    It will print out a world record including id and randomNumber
    Open mysql client and type SELECT * FROM hello_world.world where id = <the id printed>, verify if the randomNumber selected from database is the same as the app returned.

Other details and logs

The commit #9627 changed @Transactional into @ninja.jpa.UnitOfWork, where the UnitOfWork source code says:

image

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